`_cdgitpath_complete` can be used directly.
# push-to-all-remotes - do branch name completion
_git_push_to_all_remotes() { __gitcomp_nl "$(__git_heads)" ; }
- _cdgitpath_completion_loader() {
- _completion_loader git
- complete -F _cdgitpath_complete cdgitpath git-open
- unset _cdgitpath_completion_loader
- return 124
- }
-
_cdgitpath_complete() {
local cword="${COMP_CWORD}" cur="${COMP_WORDS[COMP_CWORD]}";
COMPREPLY=(`compgen -W "$(__git_config_get_set_variables)" -- "$cur"`)
_cdgitpath_complete
}
- complete -F _cdgitpath_completion_loader cdgitpath git-open
+ complete -F _cdgitpath_complete cdgitpath git-open
# list remotes with URLs matching a regexp
_list_remotes() {