diff --git a/zsh/lib/config.zsh b/zsh/lib/config.zsh index 7fa00a1..d236a6c 100644 --- a/zsh/lib/config.zsh +++ b/zsh/lib/config.zsh @@ -2,7 +2,7 @@ ##################################################################### [ ! $SCWRYPTS_ROOT ] \ - && SCWRYPTS_ROOT="$(cd $(dirname "${0:a:h}"); git rev-parse --show-toplevel)" + && SCWRYPTS_ROOT="$(cd $(dirname "${0:a:h}"); git rev-parse --show-toplevel 2>/dev/null)" [ ! $SCWRYPTS_ROOT ] && [ -d /usr/share/scwrypts ] \ && SCWRYPTS_ROOT=/usr/share/scwrypts