Option and completion changes:

* disabling autocd
    * disabling cdablevar
    * completion leaves cursor at the end of the word
    * completion assumes start-of-word
    * getting rid of cd() function
    * dirs => dirs -v
    * not sharing history between active sessions
This commit is contained in:
Michael Komitee 2011-01-07 09:49:30 -05:00
commit ae50006c8a
4 changed files with 29 additions and 28 deletions

View file

@ -3,12 +3,12 @@ setopt auto_name_dirs
setopt auto_pushd
setopt pushd_ignore_dups
alias ..='cd ..'
alias cd..='cd ..'
alias cd...='cd ../..'
alias cd....='cd ../../..'
alias cd.....='cd ../../../..'
alias cd/='cd /'
#alias ..='cd ..'
#alias cd..='cd ..'
#alias cd...='cd ../..'
#alias cd....='cd ../../..'
#alias cd.....='cd ../../../..'
#alias cd/='cd /'
alias 1='cd -'
alias 2='cd +2'
@ -20,21 +20,21 @@ alias 7='cd +7'
alias 8='cd +8'
alias 9='cd +9'
cd () {
if [[ "x$*" == "x..." ]]; then
cd ../..
elif [[ "x$*" == "x...." ]]; then
cd ../../..
elif [[ "x$*" == "x....." ]]; then
cd ../../..
elif [[ "x$*" == "x......" ]]; then
cd ../../../..
else
builtin cd "$@"
fi
}
#cd () {
# if [[ "x$*" == "x..." ]]; then
# cd ../..
# elif [[ "x$*" == "x...." ]]; then
# cd ../../..
# elif [[ "x$*" == "x....." ]]; then
# cd ../../..
# elif [[ "x$*" == "x......" ]]; then
# cd ../../../..
# else
# builtin cd "$@"
# fi
#}
alias md='mkdir -p'
alias rd=rmdir
alias d='dirs -v'
alias dirs='dirs -v'