chore: whitespace changes

This commit is contained in:
George Rawlinson 2021-07-08 16:52:07 +00:00
parent 9061406734
commit f3ae58d3eb
Signed by: grawlinson
GPG key ID: E0959FEA8B550539
3 changed files with 20 additions and 12 deletions

View file

@ -1,4 +1,6 @@
#
# key bindings # key bindings
#
# set emacs mode # set emacs mode
bindkey -e bindkey -e

View file

@ -1,4 +1,6 @@
#
# completion configuration # completion configuration
#
# have the menu highlight as we cycle through options # have the menu highlight as we cycle through options
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
@ -18,7 +20,7 @@ setopt COMPLETE_ALIASES
# complete . and .. special directories # complete . and .. special directories
zstyle ':completion:*' special-dirs true zstyle ':completion:*' special-dirs true
# use caching so that commands like apt and dpkg complete are useable # enable caching so that commands like apt and dpkg are completeable
zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path "${ZCACHEDIR}" zstyle ':completion::complete:*' cache-path "${ZCACHEDIR}"

View file

@ -1,3 +1,7 @@
#
# zsh-specific options
#
# general # general
setopt NO_BEEP # disable terminal beep setopt NO_BEEP # disable terminal beep
setopt MULTI_OS # pipe to multiple outputs setopt MULTI_OS # pipe to multiple outputs
@ -9,17 +13,17 @@ setopt EXTENDED_GLOB # enable zsh globbing features
setopt NUMERIC_GLOB_SORT # sort globs numerically, not by letter setopt NUMERIC_GLOB_SORT # sort globs numerically, not by letter
# history # history
HISTSIZE=100000 # set history size to 100K HISTSIZE=100000 # set history size to 100K
SAVEHIST="${HISTSIZE}" # cap history size at 100K SAVEHIST="${HISTSIZE}" # cap history size at 100K
setopt EXTENDED_HISTORY # record timestamp on command in HISTFILE setopt EXTENDED_HISTORY # record timestamp on command in HISTFILE
setopt HIST_EXPIRE_DUPS_FIRST # delete duplicates first when HISTFILE > HISTSIZE setopt HIST_EXPIRE_DUPS_FIRST # delete duplicates first when HISTFILE > HISTSIZE
setopt APPEND_HISTORY # ignore duplicate commands in history list setopt APPEND_HISTORY # ignore duplicate commands in history list
setopt HIST_FIND_NO_DUPS # when searching history don't display results already cycled through twice setopt HIST_FIND_NO_DUPS # when searching history don't display results already cycled through twice
setopt HIST_IGNORE_SPACE # ignore commands that start with space setopt HIST_IGNORE_SPACE # ignore commands that start with space
setopt HIST_VERIFY # show command with history expansion to user before running it setopt HIST_VERIFY # show command with history expansion to user before running it
setopt SHARE_HISTORY # shares history across multiple zsh sessions, in real time setopt SHARE_HISTORY # shares history across multiple zsh sessions, in real time
setopt HIST_IGNORE_ALL_DUPS # do not write commands to history that are duplicates of the previous command setopt HIST_IGNORE_ALL_DUPS # do not write commands to history that are duplicates of the previous command
setopt HIST_REDUCE_BLANKS # remove erroneous blanks from commands before appending to history setopt HIST_REDUCE_BLANKS # remove erroneous blanks from commands before appending to history
# create history file # create history file
[ -z "${HISTFILE}" ] && HISTFILE="${ZCACHEDIR}/zhistory" [ -z "${HISTFILE}" ] && HISTFILE="${ZCACHEDIR}/zhistory"