From c90188e29a7c71520940280cf5e2ed517ba219a0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 4 Aug 2016 20:44:03 +0300 Subject: [PATCH] .shellrc: rename list_remotes to _list_remotes list_remotes can hardly be used at the command line. --- .shellrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } -- 2.39.5