diff options
author | Mike Beattie <mike@ethernal.org> | 2019-12-05 08:48:21 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2019-12-05 08:48:21 +1300 |
commit | 10a17b07a5eb77d91868f247de9e2dc52d363bda (patch) | |
tree | c4c9e71a2060416391f04ccede0c05fda11da023 | |
parent | 944006b03a17c0b40a88f99b625238fc4db3d50f (diff) |
ZSH: re-work misc settings and options sections
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r-- | .zshrc | 65 |
1 files changed, 42 insertions, 23 deletions
@@ -65,32 +65,51 @@ 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. |