use setopt NO_CLOBBER instead of unsetopt CLOBBER

Closes #117
This commit is contained in:
Gordon Gao 2016-12-25 01:35:55 +08:00 committed by Matt Hamilton
parent b021ba6817
commit 9529245cbb
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ ZSH options
| 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 |
| 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 |
| CLOBBER | Disables automatic truncation with '>' or '>\|'. Use '>>!' or '>>\|' instead |
| NO_CLOBBER | Disables overwrite existing files with `>`. Use `>|` or `>!` instead |

View File

@ -6,7 +6,7 @@
# Navigation
#
# If a command is issued that cant be executed as a normal command,
# If a command is issued that cant 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
@ -33,6 +33,6 @@ setopt EXTENDED_GLOB
# Perform implicit tees or cats when multiple redirections are attempted.
setopt MULTIOS
# Allows > redirection to truncate existing files. Otherwise >! or >| must be used to truncate a file.
# If the option is not set, and the option APPEND_CREATE is also not set, >>! or >>| must be used to create a file.
unsetopt CLOBBER
# Disallow > redirection to overwrite existing files.
# >| or >! must be used to overwrite a file.
setopt NO_CLOBBER