From 0146107851a7f6a05b1a2146e275b631edf20338 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Thu, 3 Nov 2022 11:55:33 -0500 Subject: idk --- zsh/zscripts/zplug.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zsh/zscripts/zplug.zsh') 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 -- cgit v1.2.3