From: Oleg Broytman Date: Thu, 4 Aug 2016 17:44:03 +0000 (+0300) Subject: .shellrc: rename list_remotes to _list_remotes X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c90188e29a7c71520940280cf5e2ed517ba219a0;p=dotfiles.git .shellrc: rename list_remotes to _list_remotes list_remotes can hardly be used at the command line. --- diff --git a/.shellrc b/.shellrc index 333091c..544e298 100644 --- a/.shellrc +++ b/.shellrc @@ -182,7 +182,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then _git_rbip() { _git_rebase ; } # list remotes with URLs matching a regexp - list_remotes() { + _list_remotes() { GIT_REMOTES="" local remote for remote in `git remote`; do @@ -195,7 +195,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then # completion for cdremote - list remotes with directories as URLs _cdremote_complete() { local cur="${COMP_WORDS[COMP_CWORD]}"; - list_remotes '^\(/\|\.\./\)' # (/ or ../ at the beginning) + _list_remotes '^\(/\|\.\./\)' # (/ or ../ at the beginning) COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`) unset GIT_REMOTES } @@ -205,7 +205,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then # completion for git-open - list remotes with http(s) URLs _git_open() { local cur="${COMP_WORDS[COMP_CWORD]}"; - list_remotes '^http\(s\)\?://' + _list_remotes '^http\(s\)\?://' COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`) unset GIT_REMOTES }