]> git.phdru.name Git - dotfiles.git/blobdiff - .shellrc
.shellrc: use '() {' syntax for functions
[dotfiles.git] / .shellrc
index 38f7381a7b060becb2a9ceb9b5e6237fa1dca174..6a57008952d125a312c4c012a75875286fa09699 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
@@ -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