Add history settings for ZSH

This commit is contained in:
Tom Willemse 2016-10-29 11:00:18 +02:00
parent bf4fa1fd59
commit 3e5646f4b5

View file

@ -17,6 +17,38 @@ Autoload any ZSH function from =$HOME/.zsh/functions=.
alias scsh="rlwrap scsh" alias scsh="rlwrap scsh"
#+END_SRC #+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 * Plug-ins
Load zplug, a next generation zsh plugin manager. Load zplug, a next generation zsh plugin manager.