From: Oleg Broytman Date: Thu, 7 Jul 2016 16:48:01 +0000 (+0300) Subject: .shellrc: allow directory URLs to begin with ../ X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=199ab56898d27a3732e95d312bc0a917b649091a .shellrc: allow directory URLs to begin with ../ --- 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