diff options
author | Alan Pearce | 2019-09-22 14:02:30 +0200 |
---|---|---|
committer | Alan Pearce | 2019-09-22 14:02:30 +0200 |
commit | b2d957b9399270b96949c1a8e9bc361ee71a6f9d (patch) | |
tree | ae0bdf25f428d5c50f0ed0db34e0b207a197de3d | |
parent | ee3fac4c2bb1c62c66084fdcd4f5f89917448689 (diff) | |
download | dotfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.lz dotfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.zst dotfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.zip |
zsh: load zplugin module if available
-rw-r--r-- | zsh/.config/zsh/.zshrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 52dc5a5..658b3d0 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -1,4 +1,12 @@ # -*- mode: sh; -*- +if [[ -d "$HOME/.zplugin/bin/zmodules/Src" ]] +then + module_path+=( "/Users/alan/.zplugin/bin/zmodules/Src" ) + zmodload zdharma/zplugin +else + echo "Zplugin module is not installed" >&2 +fi + source $HOME/.zplugin/bin/zplugin.zsh autoload -Uz _zplugin (( ${+_comps} )) && _comps[zplugin]=_zplugin |