From 10a17b07a5eb77d91868f247de9e2dc52d363bda Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Thu, 5 Dec 2019 08:48:21 +1300 Subject: ZSH: re-work misc settings and options sections Signed-off-by: Mike Beattie --- .zshrc | 65 ++++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/.zshrc b/.zshrc index 519fb53..a6e0697 100644 --- a/.zshrc +++ b/.zshrc @@ -64,33 +64,52 @@ function () { } +########################################################## +# Options + +# Changing Directories +setopt autocd # Exec directory to cd there + +# Prompting +setopt nopromptcr # No cr before prompt. + +# Completion +setopt autolist # Automatically show choices for completion +setopt automenu # Filename completion: the best of csh and 4dos! +setopt nolistbeep # Don't beep on ambiguous completion +setopt list_packed # Make completion lists smaller + +# Expansion and globbing +#setopt extendedglob # Lots of cool extra wildcards + +# History +setopt share_history # Continually read and write from history file +setopt hist_ignore_dups # Do not add duplicate contiguous commands to history +setopt hist_allow_clobber # Add '|' to output redirections in history +setopt hist_reduce_blanks # Remove extra blanks from history entries +#setopt nobanghist # No bang-history, thanks + +# Input/Output +setopt noclobber # Require '!' after redirections to overwrite files +setopt noflowcontrol # Disable ^S/^Q in editor +setopt correct # Spell check commands +setopt nomailwarning # Alert on new mail +#setopt print_exit_value # Print non-zero exit values + +# Job control +setopt autoresume # Resume existing jobs with bare command +setopt nobgnice # Don't nice bg jobs + +# Zle (ZSH Line Editor) +setopt nobeep # No beep on error + + ########################################################## # Misc -#cdpath=(.. ~) # make cd search other directories limit core 0 # no core dumps -umask 022 # for user group system -setopt nopromptcr # No cr before prompt. -#setopt extendedglob # Lots of cool extra wildcards -#setopt mailwarning # New mail? -setopt correct # Correct commands -#setopt nobanghist # No bang-history, thanks -# Note that the following comment makes me cringe now, but is left in for -# historical amusement value. (joeyh is funny) -setopt autolist automenu # Filename completion: the best of csh and 4dos! -setopt nobeep nolistbeep -setopt autocd # Exec directory to cd there -setopt noclobber noflowcontrol -setopt autoresume -#setopt print_exit_value -setopt list_packed -unsetopt bgnice - -# History setup. -setopt share_history -setopt hist_ignore_dups -setopt hist_allow_clobber -setopt hist_reduce_blanks +umask 022 # default umask +#cdpath=(.. ~) # make cd search other directories # Make alt key function as meta key. -- cgit v1.2.3