From f3ae58d3eb07f95b530f1aec91ce85ace65faf97 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Thu, 8 Jul 2021 16:52:07 +0000 Subject: [PATCH] chore: whitespace changes --- source/bindkeys.zsh | 2 ++ source/completions.zsh | 4 +++- source/options.zsh | 26 +++++++++++++++----------- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/source/bindkeys.zsh b/source/bindkeys.zsh index 9ade0a3..99fc6f2 100644 --- a/source/bindkeys.zsh +++ b/source/bindkeys.zsh @@ -1,4 +1,6 @@ +# # key bindings +# # set emacs mode bindkey -e diff --git a/source/completions.zsh b/source/completions.zsh index c0ad48c..4c95aab 100644 --- a/source/completions.zsh +++ b/source/completions.zsh @@ -1,4 +1,6 @@ +# # completion configuration +# # have the menu highlight as we cycle through options zstyle ':completion:*' menu select @@ -18,7 +20,7 @@ setopt COMPLETE_ALIASES # complete . and .. special directories 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:*' cache-path "${ZCACHEDIR}" diff --git a/source/options.zsh b/source/options.zsh index dac312f..5c84cba 100644 --- a/source/options.zsh +++ b/source/options.zsh @@ -1,3 +1,7 @@ +# +# zsh-specific options +# + # general setopt NO_BEEP # disable terminal beep 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 # history -HISTSIZE=100000 # set history size to 100K -SAVEHIST="${HISTSIZE}" # cap history size at 100K -setopt EXTENDED_HISTORY # record timestamp on command in HISTFILE -setopt HIST_EXPIRE_DUPS_FIRST # delete duplicates first when HISTFILE > HISTSIZE -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_IGNORE_SPACE # ignore commands that start with space -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 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 +HISTSIZE=100000 # set history size to 100K +SAVEHIST="${HISTSIZE}" # cap history size at 100K +setopt EXTENDED_HISTORY # record timestamp on command in HISTFILE +setopt HIST_EXPIRE_DUPS_FIRST # delete duplicates first when HISTFILE > HISTSIZE +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_IGNORE_SPACE # ignore commands that start with space +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 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 # create history file [ -z "${HISTFILE}" ] && HISTFILE="${ZCACHEDIR}/zhistory"