X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=f027cc123032170fbbf361827660a1c3eba6cb66;hb=c31a33ecc17ef4720fded354f5adf520e43fc798;hp=1415c42e7a6a77393b3069e5f721ba957665a7bf;hpb=c08c70f213d849947c8f436be29092b46d6d82e0;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 1415c42..f027cc1 100644 --- a/.shellrc +++ b/.shellrc @@ -171,12 +171,12 @@ if test -n "$BASH_VERSION"; then # list remotes with URLs matching a regexp list_remotes() { GIT_REMOTES="" + local remote for remote in `git remote`; do if git config --get remote.$remote.url | grep -q "$1"; then GIT_REMOTES="$GIT_REMOTES $remote" fi done - unset remote } # completion for cdremote - list remotes with directories as URLs