diff options
Diffstat (limited to 'zsh/zscripts/zplug.zsh')
-rwxr-xr-x | zsh/zscripts/zplug.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zsh/zscripts/zplug.zsh b/zsh/zscripts/zplug.zsh index 587a8c0..b3eff09 100755 --- a/zsh/zscripts/zplug.zsh +++ b/zsh/zscripts/zplug.zsh @@ -1,12 +1,12 @@ #!/usr/bin/env zsh local zplugs="${ZDOTDIR:-~/.}${ZDOTDIR:+/}zplugs" # Declare all variables using `local` to keep them away from the interactive shell -local zplugins="${ZPLUGINSDIR:-/usr/local/share/zsh/zplugins}" -[[ $EUID != 0 ]] && local sudo=${SUDO-sudo} +local zplugins="${ZPLUGINSDIR:-/usr/local/share/zsh/zplugins}" # TODO set default dir if zplugnoroot +[[ $EUID != 0 ]] && [ -z "$ZPLUGNOROOT" ] && local sudo=${SUDO-sudo} function __zplugInstall() { touch "$zplugs" - local pluglist=( `grep -v '#' "$zplugs"` ) + local pluglist=( `\grep -v '#' "$zplugs"` ) local confirm plug shift for plug in "$@"; do; pluglist+=(${plug}); done |