summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-22 14:02:30 +0200
committerAlan Pearce2019-09-22 14:02:30 +0200
commitb2d957b9399270b96949c1a8e9bc361ee71a6f9d (patch)
treeae0bdf25f428d5c50f0ed0db34e0b207a197de3d
parentee3fac4c2bb1c62c66084fdcd4f5f89917448689 (diff)
downloadnixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.lz
nixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.tar.zst
nixfiles-b2d957b9399270b96949c1a8e9bc361ee71a6f9d.zip
zsh: load zplugin module if available
-rw-r--r--zsh/.config/zsh/.zshrc8
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