diff --git a/zsh/zshrc.org b/zsh/zshrc.org index 919de03..e866ce2 100644 --- a/zsh/zshrc.org +++ b/zsh/zshrc.org @@ -17,6 +17,38 @@ Autoload any ZSH function from =$HOME/.zsh/functions=. alias scsh="rlwrap scsh" #+END_SRC +* History + + Store ZSH history in a non-intrusive place. + + #+BEGIN_SRC sh + HISTFILE=$HOME/.zsh/histfile + #+END_SRC + + Keep at most 1000 previous commands in memory. + + #+BEGIN_SRC sh + HISTSIZE=1000 + #+END_SRC + + Save at most 1000 previous commands to disk. + + #+BEGIN_SRC sh + SAVEHIST=1000 + #+END_SRC + + Allow multiple shell instances to share the same history. + + #+BEGIN_SRC sh + setopt SHARE_HISTORY + #+END_SRC + + Don't remember duplicated commands. + + #+BEGIN_SRC sh + setopt HIST_IGNORE_ALL_DUPS + #+END_SRC + * Plug-ins Load zplug, a next generation zsh plugin manager.