浏览代码

core: enable hist_reduce_blanks

Fixes #8722
Marc Cornellà 4 年之前
父节点
当前提交
cbd6fbe7a7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/history.zsh

+ 1 - 0
lib/history.zsh

@@ -35,6 +35,7 @@ setopt extended_history       # record timestamp of command in HISTFILE
 setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
 setopt hist_ignore_dups       # ignore duplicated commands history list
 setopt hist_ignore_space      # ignore commands that start with space
+setopt hist_reduce_blanks     # remove superfluous blanks from commands added to history
 setopt hist_verify            # show command with history expansion to user before running it
 setopt inc_append_history     # add commands to HISTFILE in order of execution
 setopt share_history          # share command history data