export GIT_DIR=~/.dotfiles.git
export GIT_WORK_TREE=~/
cd ~/
git init
git remote add origin git@github.com:jorgebg/dotfiles.git
git pull --rebase origin master
ln -s .zshrc.$(uname -s) .zshrc
cd .oh-my-zsh/custom/bootstrap/
# Debian
sudo apt-get install -y $(cat apt.txt)
# Python
pip3 install -r requirements.txt
# OSX
brew bundle
Whenever you want to to work with your dotfiles git repository, just set the GIT_DIR
and GIT_WORK_TREE
evironment variables with the following command:
dotfiles
dotfiles
is an alias of eval $(dotfiles-env)
. You can change the location of your dotfiles git repository by overriding the dotfiles-env
function. The default variables are:
export GIT_DIR=~/.dotfiles.git
export GIT_WORK_TREE=~/