mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
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:
parent
c10c31af1e
commit
ae50006c8a
4 changed files with 29 additions and 28 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue