From 4786552e8c5469b00ab8e4aecb99e551974d87eb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 8 Mar 2023 13:39:28 +0000 Subject: [PATCH] home: zsh: verify history expansion This helps when I absentmindedly run a command which contains exclamation points. --- home/zsh/options.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/zsh/options.zsh b/home/zsh/options.zsh index e1e31f4..98aaa6b 100644 --- a/home/zsh/options.zsh +++ b/home/zsh/options.zsh @@ -8,6 +8,8 @@ setopt autopushd pushdminus pushdsilent setopt rcquotes # Single word commands can resume an existing job setopt autoresume +# Show history expansion before running a command +setopt hist_verify # Append commands to history as they are exectuted setopt inc_append_history_time # Remove useless whitespace from commands