Skip to content

leafhy/dotfiles

 
 

Repository files navigation

Dotfiles for Ubuntu 💜

My preferred starting configuration for Ubuntu Desktop. Current version 20.04 Focal Fossa.

The installation script included will install a suggested serving of programs and applications, found within the scripts/ directory. Please verify that you want these before running the script.

Add or delete files in scripts/install.sh and scripts/programs/ to modify your installation.

Usage

After installing your fresh OS, do:

sudo apt install git vim -y

Use Vim to create any SSH keys you need to access GitHub, and remember to run ssh-add as well as chmod 600 <key_name>. Then clone this repository:

git clone git@github.com:victoriadrake/dotfiles.git

# Or use HTTPS
git clone https://github.com/victoriadrake/dotfiles.git

You may optionally like to pass the --depth argument to clone only a few of the most recent commits.

Close Firefox if it's open, then run the installation script.

cd dotfiles/scripts/
./install.sh

If you like, set up powerline-shell:

cd powerline-shell/
sudo python3 setup.py install

Uncomment the relevant lines in .bashrc, then restart your terminal to see changes, or run:

cd ~
source .bashrc

Random Helpful Stuff (TM)

Clone all your remote repositories

Given a list of repository URLs, gh-repos.txt, run:

xargs -n1 git clone < gh-repos.txt

Use the firewood Bash alias to collect remote branches.

See How to write Bash one-liners for cloning and managing GitHub and GitLab repositories for more.

Terminal theme

There are plenty of themes for Gnome terminal at Mayccoll/Gogh.

Print a 256-color test pattern in your terminal:

for i in {0..255} ; do
    printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
    if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
        printf "\n";
    fi
done

Saving and loading configuration settings

Optionally, load settings.dconf with:

dconf load /org/gnome/ < .config/dconf/settings.dconf

Back up new settings with:

dconf dump /org/gnome/ > .config/dconf/settings.dconf

Run man dconf on your machine for more.

Your personal CLI tool Makefile

See the Makefile in this repository for some helpful command aliases. Read about self-documenting Makefiles on my blog.

Recommended additions

Packages

No packages published

Languages

  • Shell 91.9%
  • Vim Script 4.8%
  • Python 2.6%
  • Makefile 0.7%