Browse Source

Simplify `if' into oneliner, allow spaces in HISTFILE

Marc Cornellà 9 years ago
parent
commit
94baa9eadd
1 changed files with 1 additions and 4 deletions
  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