Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rewrite of zsh-newuser-install
- X-seq: zsh-workers 48246
- From: "Paul" <GammaFunction@xxxxxxxxxxx>
- To: "Marlon Richert" <marlon.richert@xxxxxxxxx>, "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>, "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>, "dana" <dana@xxxxxxx>, "Oliver Kiddle" <opk@xxxxxxx>
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxx>
- Subject: Re: Rewrite of zsh-newuser-install
- Date: Wed, 24 Mar 2021 22:36:58 -0500
- Archived-at: <https://zsh.org/workers/48246>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CA649HTGPR72.5P0H9GO79TOF%40kbvv>
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net DFD11BD05A
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 908F9BD022
- In-reply-to: <CAHLkEDt+=qEL-jMqYxKBXBZuPEi_=dm-Ms-6oZY=b-RyjXJ2rw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
> zle -N zle-line-init .zshrc.app-mode; .zshrc.app-mode() { echoti smkx }
> if [[ -n "$terminfo[rmkx]" ]]; then
> zle -N zle-line-finish .zshrc.raw-mode; .zshrc.raw-mode() { echoti rmkx }
> fi
Might I suggest:
autoload add-zle-hook-widget
add-zle-hook-widget zle-line-init .zshrc.app-mode; .zshrc.app-mode() { echoti smkx }
if [[ -n "$terminfo[rmkx]" ]]; then
add-zle-hook-widget zle-line-finish .zshrc.raw-mode; .zshrc.raw-mode() { echoti rmkx }
fi
Unless we expect users to migrate this config to older versions of Zsh.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author