These steps will create a copy of all the dotfiles in this repo and place them in the $HOME
directory. It will also set a bare git repository to manage the files with dotfiles
as the git controller keyword.
- Install basic command tools
xcode-select --install
-
Install Homebrew ✨
-
Add dotfiles alias:
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- Clone dotfiles in a bare repository:
git clone --bare [email protected]:jeremy2918/dotfiles.git $HOME/.dotfiles
- Checkout:
dotfiles checkout
- If the previous step failed...
mkdir -p .dotfiles-backup && \
dotfiles checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .dotfiles-backup/{}
dotfiles checkout
- Hide untracked files:
dotfiles config --local status.showUntrackedFiles no
Run the brew.sh
file to get brew to install all the apps I use.
cd ~/.dotfiles && ./brew.sh
Add ranger devicons:
git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons