# define completion for cdremote - list remotes with directories as URLs
_cdremote_complete() {
local cur="${COMP_WORDS[COMP_CWORD]}";
- list_remotes '^/'
+ list_remotes '^\(/\|\.\./\)'
COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)
GIT_REMOTES=""
unset GIT_REMOTES