zsh: setopt: add directory stack setopts and remove cdablevars setopt
This commit is contained in:
parent
2db37ccc1f
commit
5fdbfcbfb3
1 changed files with 7 additions and 3 deletions
|
|
@ -8,12 +8,16 @@ setopt interactive_comments
|
||||||
# If you type foo, and it isn't a command, and it is a directory in your
|
# If you type foo, and it isn't a command, and it is a directory in your
|
||||||
# cdpath, go there.
|
# cdpath, go there.
|
||||||
setopt auto_cd
|
setopt auto_cd
|
||||||
# if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory
|
|
||||||
setopt cdablevarS
|
|
||||||
|
|
||||||
# ===== directory stack
|
# ===== directory stack
|
||||||
|
# automatically push cd-ed directories onto the directory stack
|
||||||
|
setopt auto_pushd
|
||||||
# do not push duplicates onto the directory stack
|
# do not push duplicates onto the directory stack
|
||||||
# setopt pushd_ignore_dups
|
setopt pushd_ignore_dups
|
||||||
|
# Exchange the meaning of + and - when specifying a directory on the stack.
|
||||||
|
# This way cd -<Tab> lists the last used directory first, which is more
|
||||||
|
# natural because cd - goes to the last directory.
|
||||||
|
setopt pushd_minus
|
||||||
|
|
||||||
# ===== expansion and globbing
|
# ===== expansion and globbing
|
||||||
# treat #, ~ and ^ as part of patterns for filename generation
|
# treat #, ~ and ^ as part of patterns for filename generation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue