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 /zsh | |
parent | ee3fac4c2bb1c62c66084fdcd4f5f89917448689 (diff) | |
download | nixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.lz nixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.zst nixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.zip |
zsh: load zplugin module if available
Diffstat (limited to 'zsh')
-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 52dc5a56..658b3d0e 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 |