cd ~
git clone git@github.com:kcskou/dotfiles.git
oh-my-zsh custom plugins are checked in as git submodules
cd ~/dotfiles
git submodule update --init --recursive
~/dotfiles/bin/makesymlinks.sh
-
Confirm that .zshrc points to the custom directory:
ZSH_CUSTOM=~/dotfiles/oh-my-zsh/custom/
-
Go to the plugin directory:
cd ~/dotfiles/oh-my-zsh/custom/plugin
-
Confirm that the repository of the plugin does not already exist in this directory.
-
Add submodules (zsh-autosuggestions as example):
git submodule add https://github.com/zsh-users/zsh-autosuggestions.git
-
Go to the cloned repo directory, and confirm that
git status
shows that this is a git repository. -
Go back to parent repository, and confirm that
git status
shows that the parent repo is aware of the new submodule. Then commit the change as usual.