Skip to content

Loading…

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

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/history.zsh
View
4 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
Something went wrong with that request. Please try again.