X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=6a57008952d125a312c4c012a75875286fa09699;hb=ae5f816b7ca05c64e19430dd58626afd04293d57;hp=38f7381a7b060becb2a9ceb9b5e6237fa1dca174;hpb=ed7cdee7b186fee9d99410d77ef722add83e4a32;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 38f7381..6a57008 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 @@ -210,8 +210,7 @@ case "$SHELL" in esac -include() -{ +include() { cfg="$1" if [ -f "./$cfg" -a -r "./$cfg" ]; then echo "Reading config file \`$cfg'" 1>&2