ohmyzsh/custom/plugins.zsh
Michael W Clark 93d04724a7 Add my custom
2022-10-14 00:36:46 -05:00

14 lines
509 B
Bash
Executable file

PLUGINS_DIR=$ZSH/plugins
source $PLUGINS_DIR/git/git.plugin.zsh
source $PLUGINS_DIR/z/z.plugin.zsh
if [ ! -d "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then
# Take action if $DIR exists. #
echo "Installing zsh autosuggestions..."
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
else
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
fi
eval "$(gh completion -s zsh)"