You are not logged in.

#1 2017-08-11 19:56:49

Corsair
Member
Registered: 2007-01-28
Posts: 52
Website

Zsh don't recognize ctrl- shortcuts on iTerm2

I'm using an Arch Linux remote on macOS, with iTerm2.  Somehow all Zsh's ctrl- shortcuts don't work.  For example if I want to scroll back my command history by pressing ctrl-p, it just displays a "^p".  Same goes for all such shortcuts.  But using ctrl-c to terminate is working.  Additionaly, *some* alt- shortcuts work, but not all.  I can use alt-b to jump back a word, but cannot use alt-f to jump forward.

I thought it's some weird character in my PROMPT, so I tried in "zsh -df", same result.

Also tried in Mac's stock Terminal, same result.

However if I start bash in my zsh, the problem goes away.

Any ideas…?


Fear is the path to the darkside.
{My Config}

Offline

#2 2017-08-11 22:51:24

Corsair
Member
Registered: 2007-01-28
Posts: 52
Website

Re: Zsh don't recognize ctrl- shortcuts on iTerm2

Hmm… Turns out I only needed to add bindkey -e to .zshrc.

This is weird, because on the Zsh 5.2 on my Mac, Emacs keybinding is the default…

Last edited by Corsair (2017-08-11 22:51:35)


Fear is the path to the darkside.
{My Config}

Offline

Board footer

Powered by FluxBB