From: Mark Wooding Date: Wed, 2 May 2018 12:42:12 +0000 (+0100) Subject: dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/cba93353b8c3eafce56e7012788e6a3c7549b0c6?hp=-c dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly. 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. --- cba93353b8c3eafce56e7012788e6a3c7549b0c6 diff --git a/dot/bashrc b/dot/bashrc index 4f3e5ba..f774607 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -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 diff --git a/dot/zshrc b/dot/zshrc index 4dc0fb7..8af418a 100644 --- 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