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