hackerkid / hackerkid/first-time-ubuntu

Discussion/suggestions: directory structure and preferences

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Okay, this looks like the perfect place to suggest something, or rather tell how I do this kind of stuff.
## Directory Structure
### Github repositories

I usually keep the projects that I'm workign on on github in my ~/Documents directory. My script takes input like `batch-git-clone project1 project2 project3` and so on. Here' the source:

``` bash
#! /usr/bin/env bash
cd ~/Documents
GITHUBUSERNAME="aero31aero"
for var in "$@"
do
git clone "https://github.com/$GITHUBUSERNAME/$var"
done
```
### Zsh set path variable

Due to the obviously gonna increase number of shell scripts I will have to deal with, I keep them all in ~/Documents/scripts and add that to my $PATH.

``` bash
#! /usr/bin/env bash
echo >> ~/.zshrc
echo "# Update PATH variable for my scripts" >> ~/.zshrc
echo "export PATH='~/Documents/scripts:\$PATH'" >> ~/.zshrc
# the single quotes are important to make sure that PATH is not evaluated while echoing.
```
## System preferences

Okay, I'm writing this one just because you haven't added these yet, so maybe you don't know of these. Using gsettings etc you can set things like launcher icons size, visibility, almost all unity/gnome features. Also, if in unity you install the patched `notify-osd` you can customize the notifications as well.
## Hmm...

So at the end, my main script has several functions in it, first it install all the softwares, then it sets up the directory structure and then it sets up things like a nice wallpaper, settings for guake etc. Just thought maybe you'd like to borrow some.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.