]> git.phdru.name Git - dotfiles.git/commitdiff
.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 2162d3b5164c77f7f430b824437a5dd3a31774b9..205f870cb6d00d2b1de10f62eeda371cf74c7e74 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
       }