Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history expansion
- X-seq: zsh-users 30695
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: history expansion
- Date: Sun, 12 Jul 2026 20:27:24 +0200
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mZ6w5eifgTiXFS6sFKTZ0awPXhFUSqYLCLyhB1m2MCc=; fh=yk3c4scJWo86Za4IR1HBNZw2a+GkUkfVQ7Fs3jnanfg=; b=MaKDiH/xh1mU0BmpD1POEpILntRDEzsMEeer+KGj6oxOzd445nRVhvMtffA7Yvn1n2 vdOANZCHpGK2NihqoKSVNkvFm2FLSFIYIX5zIlWR4gug3H6EP2f+dKJ2UTp9qF7RYIKr 9noIkE1Mxo1RkJ6b7vaGu+2VJqFn/wc29d2oEWbnUyG4z6jAa8DiQw6nftp3iUoH6OMM Y89wwecLys+jVPxRuNU9ghkLpbzC3v3y+IwDHgjgA8enoLqXGSVXFv/vreApqVF3zul5 /i3Ty4m4fSFJ8XrhwQ7rLeSBWiPKVg66gNtyaj00a/T2iqAahvyj/2mn54/uGrAkRKol RpvQ==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1783880858; cv=none; d=google.com; s=arc-20260327; b=pyzc3LBBY/4K9qy+iU8/rej4X4pn5ZRrHVFM4oICT1JWjN4lko9EYYSUjrBonzafnO E8xN3tvWeoUtqN5cN5rvqX6y1/4hVwX4JmvDnO9R3gmmVGHd6YQcia8dMsI7NaxEkpR7 0YqKpYndjR7KFy7TK3UQ3IUiKUvvXJGa0s/Cup7NDWkvh4hJE9JE9gfC9DSLhnoQRwl2 F9fGNMKLNCow/TiNJFpb1frWgmykNaazP2igUF2+XEcy0rvda0OeyxSHDlcGVYeXR6GP GqQavt8u8wUtDfKJc5LM2BWp8Jt/03K/AZY5oTg+fS8okkq/lzFBdy7EYOrW47FxJVAX fKfw==
- Archived-at: <https://zsh.org/users/30695>
- In-reply-to: <20260712170537.GD719379@qaa.vinc17.org>
- List-id: <zsh-users.zsh.org>
- References: <20260712085723.GA719379@qaa.vinc17.org> <AB1505A3-F3EF-4DF2-86A7-D827F6FF6B3A@gmail.com> <CAA=-s3xAjkK1jcQ+zJFqNgF_1xkezLudrnenjttGxoZPMsUf0g@mail.gmail.com> <20260712170537.GD719379@qaa.vinc17.org>
On Sun, Jul 12, 2026 at 7:15 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2026-07-12 09:36:36 -0400, Mark J. Reed wrote:
> > I use history substitution all the time. I'm occasionally annoyed by the
> > need to extra-quote exclamation points, but not enough to give up the
> > feature, which you can always turn off with *unsetopt banghist*.
>
> I was more thinking about why it was not turned off by default
> (principle of least surprise for most users).
Changing the default is the most surprise, there are certainly many
options I would change the default value of if I was allowed to :).
Personally I use this, in the rare cases I do want banghist, but I
also don't want to be annoyed by having to quote exclamation points,
setopt banghist
histchars=$'\2\6#' # ^B^F#
bindkey "^F" self-insert
bindkey "^B" self-insert
since I never actually use ^B/^F for navigation.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author