From 4e6f3579a8244393499b718804b94c7fe73bd4a9 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 17 Dec 2010 13:59:07 +0100 Subject: [Funcs] added 'config' into allowed commands outside repo --- 01_Functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index 514b093..0e236e2 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -25,14 +25,14 @@ cmd_exists () git () { GIT=$(which -p git) case $1 in - init|clone) + init|clone|config) ;; *) if [ "$( ( $GIT ls-files ; $GIT ls-tree HEAD . ) 2>&- | head -n1)" = ""\ -a \( ! -d .git -o "$($GIT rev-parse --git-dir 2>&-)" != ".git" \)\ -a "$($GIT rev-parse --is-inside-git-dir 2>&-)" != "true" ] then - echo >&2 "zsh: the current folder is not managed by git" + echo >&2 "git $1: the current folder is not managed by git" return fi ;; -- cgit v1.2.3