dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 2 May 2018 12:42:12 +0000 (13:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 8 May 2018 14:15:56 +0000 (15:15 +0100)
I like it, but others don't.  In particular, Debian #897422 seeks to
turn it off in Bash by default.  I don't actually object to this, but
it's good to be prepared.

dot/bashrc
dot/zshrc

index 4f3e5ba..f774607 100644 (file)
@@ -72,6 +72,7 @@ shopt -s extglob
 if (( ${BASH_VERSINFO[0]} >= 4 )); then shopt -s globstar; fi
 shopt -s gnu_errfmt
 shopt -s histappend
+shopt -s histexpand
 shopt -s histreedit
 shopt -u histverify
 shopt -s hostcomplete
index 4dc0fb7..8af418a 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -117,6 +117,7 @@ SAVEHIST=1000
 
 unsetopt auto_cd
 unsetopt auto_menu
+setopt bang_hist
 unsetopt bash_auto_list
 unsetopt beep
 setopt extendedglob