diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-12-17 13:59:07 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-12-17 13:59:07 +0100 |
commit | 4e6f3579a8244393499b718804b94c7fe73bd4a9 (patch) | |
tree | 5b71b195e5337470f0e62ea1db2932bc82ac5ce0 /01_Functions.zsh | |
parent | 6849b5ad7fdaaded7f1c5c481dcaffb4a67c14ab (diff) |
[Funcs] added 'config' into allowed commands outside repo
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 4 |
1 files 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 ;; |