zsh: disable globbing hash symbol

This commit is contained in:
PowerUser64 2024-08-01 00:41:26 -07:00
parent 3fbcebeb34
commit bf12e10c6d

4
.zshrc
View file

@ -107,8 +107,6 @@ Set the SKIP_P10K_THEME environment variable to 'true' or make a configuration t
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" [ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
alias nix='noglob nix'
## ZSH Options >>> ## ZSH Options >>>
{ {
# setopt correct # Auto correct mistakes # setopt correct # Auto correct mistakes
@ -129,6 +127,8 @@ alias nix='noglob nix'
setopt rm_star_wait # Wait before accepting 'rm *' or 'rm /path/*' setopt rm_star_wait # Wait before accepting 'rm *' or 'rm /path/*'
setopt short_loops # allow things like 'if [ 1=1 ] { echo "okay"}' < https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Alternate-Forms-For-Complex-Commands setopt short_loops # allow things like 'if [ 1=1 ] { echo "okay"}' < https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Alternate-Forms-For-Complex-Commands
setopt pipe_fail # When a pipe fails, show the non-0 exit code for the exit code setopt pipe_fail # When a pipe fails, show the non-0 exit code for the exit code
disable -p '#' # Disable globbing the hash symbol
} }
# <<< # <<<
## ZSH Completion Options >>> ## ZSH Completion Options >>>