From: Oleg Broytman Date: Fri, 9 Aug 2019 11:51:18 +0000 (+0300) Subject: .shellrc: Fix the list of remotes X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=4769085847cfb7b3ab762310120cebf41cbee7ce;ds=sidebyside .shellrc: Fix the list of remotes --- diff --git a/.shellrc b/.shellrc index 2162d3b..205f870 100644 --- 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 }