From cba93353b8c3eafce56e7012788e6a3c7549b0c6 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 2 May 2018 13:42:12 +0100 Subject: [PATCH] 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. --- dot/bashrc | 1 + dot/zshrc | 1 + 2 files changed, 2 insertions(+) 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 -- 2.11.0