# 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
esac
-include()
-{
+include() {
cfg="$1"
if [ -f "./$cfg" -a -r "./$cfg" ]; then
echo "Reading config file \`$cfg'" 1>&2