edc8e3d092bc758fa9dd4f3472d2c6ec9d03b737
- Author
- James Rowe <jnrowe@gmail.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Ignore commands that start with a space.
This is useful when you want to use a dangerous command, as it won't be
available with history searching.
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index 509be8f09aa718f7ca95d10cab0edaaf876f7f61..ca6f57079aef8e953154aa176159c8635e333228 100644
3--- a/lib/history.zsh
4+++ b/lib/history.zsh
5@@ -10,6 +10,7 @@ setopt hist_verify
6 setopt inc_append_history
7 setopt extended_history
8 setopt hist_expire_dups_first
9+setopt hist_ignore_space
10
11 setopt SHARE_HISTORY
12 setopt APPEND_HISTORY