This is the repo where I keep my custom Oh My Zsh configuration directory.
- Install OMZ
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- After installation, remove everything from the OMZ custom directory (located at
$ZSH_CUSTOM
). - Clone this repo into the empty custom directory. (If you're not me, you probably want to fork it instead, or take the files and start a new repo for yourself.)
- Add symbolic links to your home directory for the
.zshrc
and.zprofile
files. This will point them to the versions from the repo.
ln -s $ZSH_CUSTOM/.zprofile $HOME/.zprofile
ln -s $ZSH_CUSTOM/.zshrc $HOME/.zshrc
- Init any git submodules included in the plugins directory
git submodule init $ZSH_CUSTOM/plugins/<path to plugin directory>
git submodule update $ZSH_CUSTOM/plugins/<path to plugin directory>
When adding custom plugins to $ZSH_CUSTOM/plugins
that come from other git repositories, it's best to include them add a Git Submodule for ease of updating, and to keep it separate from this repo's history.
git submodule add <path to repo.git> $ZSH_CUSTOM/plugins
git submodule init <path to plugin directory>