summaryrefslogtreecommitdiff
path: root/lib/history.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2014-12-13 23:20:03 +0100
committerMarc Cornellà <marc.cornella@live.com>2018-04-22 15:32:01 +0200
commit94baa9eadd05038a343bfd99f01493123f5a1526 (patch)
tree696ff4c8040ace4b3e3346a1c25ee17fe39f9550 /lib/history.zsh
parentd87d4331cfab6cffbcc2366a855855b9a5c5e848 (diff)
downloadzsh-94baa9eadd05038a343bfd99f01493123f5a1526.tar.gz
zsh-94baa9eadd05038a343bfd99f01493123f5a1526.tar.bz2
zsh-94baa9eadd05038a343bfd99f01493123f5a1526.zip
Simplify `if' into oneliner, allow spaces in HISTFILE
Diffstat (limited to 'lib/history.zsh')
-rw-r--r--lib/history.zsh5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
index 8a861fdbc..058a1a319 100644
--- a/lib/history.zsh
+++ b/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