summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-03-07 14:20:39 +0100
committerTobias Klauser <tklauser@distanz.ch>2011-03-07 14:20:39 +0100
commit1516299da794b9555ca1a073a5e42d120e8637c7 (patch)
tree926b49cf941b5ba51031b31eecdc17c244989958
parent0348653923240517494b59d4c1bf01116bba7a11 (diff)
command line history
-rw-r--r--.zsh/zshrc/40_history26
1 files changed, 26 insertions, 0 deletions
diff --git a/.zsh/zshrc/40_history b/.zsh/zshrc/40_history
new file mode 100644
index 0000000..7017189
--- /dev/null
+++ b/.zsh/zshrc/40_history
@@ -0,0 +1,26 @@
+# zshrc/40_history
+#
+# Set up command line history
+#
+# Copyright © 2011 Tobias Klauser <tklauser@distanz.ch>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: git://git.distanz.ch/dotfiles/zsh.git
+
+HISTFILE=$HOME/.zsh_history
+HISTSIZE=5000
+SAVEHIST=$HISTSIZE
+
+# append history list to the history file (think multiple zsh sessions)
+setopt append_history
+
+# ignore duplicates
+setopt hist_ignore_dups
+
+# don't store commands starting with a space in the history file
+setopt hist_ignore_space
+
+# remove superfluous blanks from each command line
+setopt hist_reduce_blanks
+
+# vim:ft=zsh