Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    Did you try the CTRL-V suggestion? Maybe your terminal interprets the keystrokes differently, so the key needs to be bound to different "symbols"? Commented Dec 25, 2016 at 14:16
  • 1
    I updated my answer. There are multiple solutions depending on the terminal emulator used. The distro or shell doesn't matter. That's probably also why it's not in .zshrc, because what works for one terminal emulator doesn't work for another. But that could probably be solved if zshrc fx. read the $TERM environment variable and applied different bindkey settings based on the result. Commented Dec 26, 2016 at 12:46
  • This sounds correct, yet on my Mint (Ubuntu), bash is fine, while zsh is not. The user or system level .bashrc don't show keybind anywhere, so not sure why the difference. Commented Nov 29, 2020 at 1:41
  • 1
    Thanks, the later bindkey commands did the trick with Zsh in Alacritty. Commented Apr 2, 2022 at 14:29
  • mblakesley: Maybe it could be due to .inputrc then? Commented Apr 3, 2022 at 15:09