aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-21 14:13:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-21 14:13:14 +1300
commitabf01ece5fe01bfa5e8abb73083ff75c0296c822 (patch)
treeafd0f6883b93849fca53594448403909363226cf /bash
parentCorrect enumeration of git refs in completion (diff)
downloaddotfiles-abf01ece5fe01bfa5e8abb73083ff75c0296c822.tar.gz
dotfiles-abf01ece5fe01bfa5e8abb73083ff75c0296c822.zip
Flatten expansion for ancient Bash
bash: 0: ambiguous redirect
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/git.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/git.bash b/bash/bashrc.d/git.bash
index 1f0a78ed..8c6fa466 100644
--- a/bash/bashrc.d/git.bash
+++ b/bash/bashrc.d/git.bash
@@ -14,7 +14,7 @@ _git() {
branch=${branch##*/}
[[ $branch == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
COMPREPLY=("${COMPREPLY[@]}" "$branch")
- done < <(git for-each-ref refs/{heads,tags} 2>/dev/null)
+ done < <(git for-each-ref refs/heads refs/tags 2>/dev/null)
return
;;