Fixed vim and zsh
This commit is contained in:
18
zsh/modules/directory/README.md
Normal file
18
zsh/modules/directory/README.md
Normal file
@ -0,0 +1,18 @@
|
||||
Directory
|
||||
=========
|
||||
|
||||
Sets directory, navigation, and redirect options.
|
||||
|
||||
ZSH options
|
||||
-----------
|
||||
|
||||
| Option | Effect |
|
||||
| ------ | ----------- |
|
||||
| AUTO_CD | If the typed command is invalid, but is a directory, cd to that directory |
|
||||
| AUTO_PUSHD | After cd, push the old directory to the directory stack |
|
||||
| PUSHD_IGNORE_DUPS | Don't push multiple copies of the same directory to the stack |
|
||||
| PUSHD_SILENT | Don't print the directory after pushd or popd |
|
||||
| PUSHD_TO_HOME | pushd without arguments acts like `pushd ${HOME}` |
|
||||
| EXTENDED_GLOB | Treat `#`, `~`, and `^` as patterns for filename globbing |
|
||||
| MULTIOS | Performs implicit tees or cats when using redirections |
|
||||
| NO_CLOBBER | Disables overwrite existing files with `>`. Use `>|` or `>!` instead |
|
38
zsh/modules/directory/init.zsh
Normal file
38
zsh/modules/directory/init.zsh
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
# Directory navigation options
|
||||
#
|
||||
|
||||
#
|
||||
# Navigation
|
||||
#
|
||||
|
||||
# If a command is issued that can’t be executed as a normal command,
|
||||
# and the command is the name of a directory, perform the cd command to that directory.
|
||||
setopt AUTO_CD
|
||||
|
||||
# Make cd push the old directory onto the directory stack.
|
||||
setopt AUTO_PUSHD
|
||||
|
||||
# Don’t push multiple copies of the same directory onto the directory stack.
|
||||
setopt PUSHD_IGNORE_DUPS
|
||||
|
||||
# Do not print the directory stack after pushd or popd.
|
||||
setopt PUSHD_SILENT
|
||||
|
||||
# Have pushd with no arguments act like ‘pushd ${HOME}’.
|
||||
setopt PUSHD_TO_HOME
|
||||
|
||||
#
|
||||
# Globbing and fds
|
||||
#
|
||||
|
||||
# Treat the ‘#’, ‘~’ and ‘^’ characters as part of patterns for filename generation, etc.
|
||||
# (An initial unquoted ‘~’ always produces named directory expansion.)
|
||||
setopt EXTENDED_GLOB
|
||||
|
||||
# Perform implicit tees or cats when multiple redirections are attempted.
|
||||
setopt MULTIOS
|
||||
|
||||
# Disallow ‘>’ redirection to overwrite existing files.
|
||||
# ‘>|’ or ‘>!’ must be used to overwrite a file.
|
||||
setopt NO_CLOBBER
|
Reference in New Issue
Block a user