- Install zsh, git and curl via package manager.
- Install oh-my-zsh:
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - Clone repo:
$ git clone --bare https://github.com/JeffAment/DotFiles.git $HOME/.dotFiles - Set temporary alias for scope of current terminal session:
$ alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotFiles/ --work-tree=$HOME' - Rename or delete existing dot files in home directory that may conflict with the new ones.
- Checkout dot files:
$ dotfiles checkout - Set repo to not show untracked files:
$ dotfiles config status.showUntrackedFiles no - Initialize and update submodules:
$ dotfiles submodule init
$ dotfiles submodule update - Pull in two git plugins for bash:
$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/git-prompt.sh
$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/git-completion.bash - Install and enable nerdfont.
- Periodically update submodules:
$ dotfiles submodule update --remote --merge
$ git init --bare $HOME/.dotFiles
$ alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotFiles/ --work-tree=$HOME'
$ dotfiles config --local status.showUntrackedFiles no
$ echo ".dotFiles" >> .gitignore
$ dotfiles submodule add https://github.com/zsh-users/zsh-autosuggestions .dotFilesSubmodules/zsh/plugins/zsh-autosuggestions
$ dotfiles submodule add https://github.com/zsh-users/zsh-syntax-highlighting.git .dotFilesSubmodules/zsh/plugins/zsh-syntax-highlighting
$ dotfiles submodule add https://github.com/bhilburn/powerlevel9k.git .dotFilesSubmodules/zsh/themes/powerlevel9k