zsh: enable option noclobber

Require `>|` to overwrite an existing file when redirecting output.
This commit is contained in:
Fernando Schauenburg 2025-02-14 09:00:59 +01:00
parent 2068330fd0
commit d8ed650761

View file

@ -1,3 +1,8 @@
fs_setup_shell_options() {
setopt INTERACTIVE_COMMENTS # Allow comments in interactive use.
set -o noclobber
}
fs_setup_terminal() {
# Make ctrl-q and ctrl-s available to terminal applications.
stty start undef stop undef
@ -538,7 +543,7 @@ fs_setup_local_config() {
# Set up zsh for interactive use (options, prompt, aliases, etc.)
fs_setup_zsh_interactive() {
setopt INTERACTIVE_COMMENTS # Allow comments in interactive use.
fs_setup_shell_options
fs_setup_terminal
fs_setup_aliases
fs_setup_completion