This is a collection of dot files I use on my laptops, which set up useful command line things like:
- handy aliases such as
ll(see the.aliasesfile for a full list) - colouring of the terminal
- showing the current directory and current git branch in your terminal prompt
- git branch completion in your terminal
This repo was inspired by https://github.com/mathiasbynens/dotfiles.
The .vimrc file was inspired by Gary Bernhardt's
.vimrc.
-
Clone this repo anywhere on your machine, e.g. your home directory.
-
If you did not put the dotfiles directory in your home directory, adjust the value of $dotfiles_dir in
.dotfiles_mainto the location of your the dotfiles directory. -
Check if you have a
.bash_profilefile in your home directory. If not, create it. -
Add the following to your
.bash_profile, adjusting the path to your dotfiles directory if necessary:
if [ -f ~/dotfiles/.dotfiles_main ]; then
. ~/dotfiles/.dotfiles_main
fi-
Source your
.bash_profilefile by running. ~/.bash_profile. You might have to restart any open command line sessions for the changes to kick in. -
To load the
.vimrcfile, create a symlink from your home directory called.vimrcpointing to~/dotfiles/.vimrc(adjust the path to your dotfiles directory if necessary).
e.g.
ln -s /Users/kat/dotfiles/.vimrc /Users/kat/.vimrc