]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: allow directory URLs to begin with ../
authorOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 16:48:01 +0000 (19:48 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 16:48:01 +0000 (19:48 +0300)
.shellrc

index 38f7381a7b060becb2a9ceb9b5e6237fa1dca174..189817bd65eb6a95476556b45de15e79aeb8c5e3 100644 (file)
--- 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