From b2d957b9399270b96949c1a8e9bc361ee71a6f9d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 22 Sep 2019 14:02:30 +0200 Subject: zsh: load zplugin module if available --- zsh/.config/zsh/.zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit 1.4.1