diff options
Diffstat (limited to 'etc/completions')
-rw-r--r-- | etc/completions/__git_files | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/completions/__git_files b/etc/completions/__git_files index 6b8c1dd..ef14c31 100644 --- a/etc/completions/__git_files +++ b/etc/completions/__git_files @@ -12,6 +12,8 @@ ls_opts=("--exclude-per-directory=.gitignore") files=(${(ps:\0:)"$(cd $gitdir/..; _call_program files git ls-files -z $ls_opts $opts 2>/dev/null)"}) __git_command_successful || return +[[ -n $gitdir ]] || return + if [[ ! -d .git ]] { dirdiff=${PWD#${gitdir%/.git}} repeat ${#${(s:/:)dirdiff}}; do |