From cbd6fbe7a7c3ef260f497704092dc43f2e953c3f Mon Sep 17 00:00:00 2001
From: Marc Cornellà <marc.cornella@live.com>
Date: Sat, 16 May 2020 17:17:38 +0200
Subject: core: enable hist_reduce_blanks

Fixes #8722
---
 lib/history.zsh | 1 +
 1 file changed, 1 insertion(+)

(limited to 'lib/history.zsh')

diff --git a/lib/history.zsh b/lib/history.zsh
index 52e45bf4c..0ac587d38 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -35,6 +35,7 @@ setopt extended_history       # record timestamp of command in HISTFILE
 setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
 setopt hist_ignore_dups       # ignore duplicated commands history list
 setopt hist_ignore_space      # ignore commands that start with space
+setopt hist_reduce_blanks     # remove superfluous blanks from commands added to history
 setopt hist_verify            # show command with history expansion to user before running it
 setopt inc_append_history     # add commands to HISTFILE in order of execution
 setopt share_history          # share command history data
-- 
cgit v1.2.3-70-g09d2