]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Set histignorespace.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 4626513a1203a81aa9ae05bac6030ffb0164fd94..5e2c06c87b48d4533bbc2dd6baaf86291603a4aa 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -112,6 +112,8 @@ setopt appendhistory
 setopt incappendhistory
 # If the same command is run multiple times store it only once in the history.
 setopt histignoredups
+# Don't add lines starting with a space to the history.
+setopt histignorespace
 # Vim like completions of previous executed commands (also enter Vi-mode). If
 # called at the beginning it just recalls old commands (like cursor up), if
 # called after typing something, only lines starting with the typed text are