Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to have Bash-like C-x-e in Zsh

Tags:

bash

zsh

People also ask

Why do I have zsh instead of bash?

Z shell or Zsh is one of them which is invented after Bash. It has many features like Bash but some features of Zsh make it better and improved than Bash, such as spelling correction, cd automation, better theme, and plugin support, etc.

Is bash scripting the same for zsh?

zsh vs bash Since zsh derives from the same Bourne shell family as bash does, most commands, syntax, and control structures will work just the same. zsh provides alternative syntax for some of the structures. zsh has several options to control compatibility, not only for bash , but for other shells as well.

Does zsh use bash language?

Zsh is built on top of bash thus it has additional features. Zsh is the default shell for macOS and Kali Linux. Zsh provides the user with more flexibility by providing various features such as plug-in support, better customization, theme support, spelling correction, etc.

Is zsh Bourne shell?

ZSH, also called the Z shell, is an extended version of the Bourne Shell (sh), with plenty of new features, and support for plugins and themes. Since it's based on the same shell as Bash, ZSH has many of the same features, and switching over is a breeze.


I'm using it with VIM mode. Basically ESC-v (or simply v if already in command mode) opens the terminal. It is setup by:

autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line

Here is how to setup it in emacs mode:

autoload edit-command-line
zle -N edit-command-line
bindkey '^Xe' edit-command-line

Use 'bindkey -e’ to to enable emacs style or ‘bindkey -v’ to enable vi style.