浏览代码

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.
James Rowe 15 年之前
父节点
当前提交
edc8e3d092
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/history.zsh

+ 1 - 0
lib/history.zsh

@@ -10,6 +10,7 @@ setopt hist_verify
 setopt inc_append_history
 setopt extended_history
 setopt hist_expire_dups_first
+setopt hist_ignore_space
 
 setopt SHARE_HISTORY
 setopt APPEND_HISTORY