Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ^[0d backward-word works on arch, not on ubuntu
- X-seq: zsh-users 30058
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: mailinglists15235 <mailinglists15235@xxxxxxxxx>
- Cc: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: ^[0d backward-word works on arch, not on ubuntu
- Date: Mon, 26 Aug 2024 10:06:32 +0200
- Archived-at: <https://zsh.org/users/30058>
- In-reply-to: <jtpEJqeBLN0RiDxUYVMDvU1-iNgI-CkrjgNRD6OAE10C-a8hlCqgPxvAOER8qhCu_3GGolUoKK0tpGEjYQBIRsD-svZBpkn0LVuI6bxwyrk=@proton.me>
- List-id: <zsh-users.zsh.org>
- References: <jtpEJqeBLN0RiDxUYVMDvU1-iNgI-CkrjgNRD6OAE10C-a8hlCqgPxvAOER8qhCu_3GGolUoKK0tpGEjYQBIRsD-svZBpkn0LVuI6bxwyrk=@proton.me>
On Mon, Aug 26, 2024 at 7:56 AM mailinglists15235
<mailinglists15235@xxxxxxxxx> wrote:
>
> hi,
> I have an Arch and an Ubuntu system where I just copied the
> ~/.{oh-my-,}zsh* stuff to.
> Both cat ctrl+left as ^[0d but only on arch the ctrl+left results
> in backward-word - what is the supposed way to get this under
> ubuntu - what is the problem? (obviously i could just bindkey it,
> but it seems that there is a more systematic way)
Bindings are indeed created with bindkey. By default, nothing is bound
to "^[0d". You can check your current bindings by typing "bindkey".
Use Ctrl-V instead of `cat` to figure out what Ctrl-Left sends to zle.
The latter is unreliable when using oh-my-zsh due to this snippet:
https://github.com/ohmyzsh/ohmyzsh/blob/f622e6a6367b5142c868f554fda968982226e5df/lib/key-bindings.zsh#L7-L16
Roman
Messages sorted by:
Reverse Date,
Date,
Thread,
Author