zsh: enable option noclobber
Require `>|` to overwrite an existing file when redirecting output.
This commit is contained in:
parent
2068330fd0
commit
d8ed650761
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
fs_setup_shell_options() {
|
||||||
|
setopt INTERACTIVE_COMMENTS # Allow comments in interactive use.
|
||||||
|
set -o noclobber
|
||||||
|
}
|
||||||
|
|
||||||
fs_setup_terminal() {
|
fs_setup_terminal() {
|
||||||
# Make ctrl-q and ctrl-s available to terminal applications.
|
# Make ctrl-q and ctrl-s available to terminal applications.
|
||||||
stty start undef stop undef
|
stty start undef stop undef
|
||||||
|
@ -538,7 +543,7 @@ fs_setup_local_config() {
|
||||||
|
|
||||||
# Set up zsh for interactive use (options, prompt, aliases, etc.)
|
# Set up zsh for interactive use (options, prompt, aliases, etc.)
|
||||||
fs_setup_zsh_interactive() {
|
fs_setup_zsh_interactive() {
|
||||||
setopt INTERACTIVE_COMMENTS # Allow comments in interactive use.
|
fs_setup_shell_options
|
||||||
fs_setup_terminal
|
fs_setup_terminal
|
||||||
fs_setup_aliases
|
fs_setup_aliases
|
||||||
fs_setup_completion
|
fs_setup_completion
|
||||||
|
|
Loading…
Add table
Reference in a new issue