local cur="${COMP_WORDS[COMP_CWORD]}";
list_remotes '^\(/\|\.\./\)' # (/ or ../ at the beginning)
COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)
local cur="${COMP_WORDS[COMP_CWORD]}";
list_remotes '^\(/\|\.\./\)' # (/ or ../ at the beginning)
COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)