浏览代码

allow setting a custom HISTFILE before oh-my-zsh is loaded

Flavius Aspra 11 年之前
父节点
当前提交
3826c7bf85
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/history.zsh

+ 3 - 1
lib/history.zsh

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