浏览代码

Simplify `if' into oneliner, allow spaces in HISTFILE

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

+ 1 - 4
lib/history.zsh

@@ -1,8 +1,5 @@
 ## Command history configuration
-if [ -z "$HISTFILE" ]; then
-    HISTFILE=$HOME/.zsh_history
-fi
-
+[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
 HISTSIZE=10000
 SAVEHIST=10000