From 199ab56898d27a3732e95d312bc0a917b649091a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 7 Jul 2016 19:48:01 +0300 Subject: [PATCH] .shellrc: allow directory URLs to begin with ../ --- .shellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.shellrc b/.shellrc index 38f7381..189817b 100644 --- a/.shellrc +++ b/.shellrc @@ -188,7 +188,7 @@ case "$SHELL" in # define completion for cdremote - list remotes with directories as URLs _cdremote_complete() { local cur="${COMP_WORDS[COMP_CWORD]}"; - list_remotes '^/' + list_remotes '^\(/\|\.\./\)' COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`) GIT_REMOTES="" unset GIT_REMOTES -- 2.39.5