nichts/nyx/homes/notashelf/programs/terminal/shell/zsh/rc/unset.zsh
2024-04-09 23:11:33 +02:00

14 lines
441 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Define a function to unset Zsh options
function unset_zsh_options() {
local options=(
"CORRECT_ALL" # try to correct the spelling of all arguments in a line.
"HIST_BEEP" # beep in ZLE when a widget attempts to access a history entry which isnt there
"SHARE_HISTORY" # read the documentation for more details
)
for option in "${options[@]}"; do
unsetopt $option
done
}
unset_zsh_options