diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 14:13:14 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 14:13:14 +1300 |
commit | abf01ece5fe01bfa5e8abb73083ff75c0296c822 (patch) | |
tree | afd0f6883b93849fca53594448403909363226cf | |
parent | Correct enumeration of git refs in completion (diff) | |
download | dotfiles-abf01ece5fe01bfa5e8abb73083ff75c0296c822.tar.gz dotfiles-abf01ece5fe01bfa5e8abb73083ff75c0296c822.zip |
Flatten expansion for ancient Bash
bash: 0: ambiguous redirect
-rw-r--r-- | bash/bashrc.d/git.bash | 2 |
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 ;; |