aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-09 00:21:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-09 00:21:09 +1200
commit18d1fdecf806a71d78611f994bacdd58107d767a (patch)
tree77a89db3de5297ef73f47ea4801e42225517812e /bash/bash_completion.d
parentImprove Git Bash completion a lot (diff)
downloaddotfiles-18d1fdecf806a71d78611f994bacdd58107d767a.tar.gz
dotfiles-18d1fdecf806a71d78611f994bacdd58107d767a.zip
Use double-glob to get all refs
Including remotes
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r--bash/bash_completion.d/git.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/git.bash b/bash/bash_completion.d/git.bash
index 1d584c2f..ba8e5d59 100644
--- a/bash/bash_completion.d/git.bash
+++ b/bash/bash_completion.d/git.bash
@@ -60,7 +60,7 @@ _git() {
COMPREPLY[${#COMPREPLY[@]}]=${ref#refs/*/}
done < <(git for-each-ref \
--format '%(refname)' \
- -- 'refs/*/'"${COMP_WORDS[COMP_CWORD]}"'*' \
+ -- 'refs/**/'"${COMP_WORDS[COMP_CWORD]}"'*' \
2>/dev/null)
return
;;