Heavily based on Karl Molina's dotfiles
Thanks Karl!
Uses a git repository inside of $home with the command.
alias df='git -C ~ --git-dir ~/.dotfiles/.git --work-tree=$HOME'
This changes the working directory to $home. And allows the .git directory to live inside the .dotfiles directory. You could use git clone --bare
and have the .dotfiles directory to be the .git directory, but then the master branch isn't set to track the remote.
See how to manage your dotfiles with git.
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/sambehrens/dotfiles/master/.install_dot_files.sh)"
Use the following alias to commit, pull, source .bash_profile, and push all at once.
dot