Install brew first (follow the instructions from the homebrew website)
git clone --bare git@github.com:Nemoden/dotfiles.git $HOME/.dot
git --git-dir=$HOME/.dot --work-tree=$HOME checkout
echo "*" > ~/.gitignore
brew bundle
echo "$(brew --prefix)/bin/fish" | sudo tee -a /etc/shells
chsh -s $(brew --prefix)/bin/fish
$(brew --prefix)/opt/fzf/install
vim +PlugInstall +q
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
This:
- creates a bare repo in
~/.dotand track all the files in the~. - adds all files in
~to.gitignore, so that we don't add any private files into git inadvertently (files MUST be added forcefully using-fflag) - changes shell to
fish - installs some software from homebrew
- creates a special git alias named
dotwhich is specifilly for working with the dotfiles located in~
dot add -f .a-dot-file
dot commit -m "Added .a-dot-file"
dot push origin master