.shellrc: Fix the list of remotes
authorOleg Broytman <phd@phdru.name>
Fri, 9 Aug 2019 11:51:18 +0000 (14:51 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 9 Aug 2019 11:51:18 +0000 (14:51 +0300)
.shellrc

index 2162d3b..205f870 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -295,7 +295,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then
       _list_remotes_completion() {
          local cur="${COMP_WORDS[COMP_CWORD]}";
          _list_remotes "$1"
-         COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)
+         COMPREPLY=(`compgen -W "${GIT_REMOTES[*]}" -- "$cur"`)
          unset GIT_REMOTES
       }