My zsh configurations and customization, relying on the wonderful prezto zsh framework.
git clone --recursive https://github.com/mahmoudimus/zsh.git ~/dotfiles/zsh
cd ~/dotfiles/zsh
./setup.zsh
cd ~/dotfiles
git submodule add https://github.com/mahmoudimus/zsh.git zsh
git submodule update --init --recursive
cd zsh
./setup.zsh
I hate git submodules, but this is a pretty good use case for them. We don't want to modify the upstream source for easy forking and modification, so the pattern I decided to go with is defined below. I got this trick from: http://scribu.net/blog/git-alias-for-updating-submodules.html
First, run this:
git config --global alias.up-sub '!f() { cd $1 && git checkout master && git pull && git submodule update --init --recursive; }; f
git up-sub zsh
from the~/dotfiles/
directory.
git up-sub prezto
from the~/dotfiles/zsh/
directory.