Question

I installed zsh, set the oh-my-zsh and then set the powerline and when I use zsh, then before my name there "emacs". It's look like:

EMACS > username > ~

How to remove it?

Was it helpful?

Solution

This prompt is generated by powerline. The "EMACS" indicates that the currently used keymap is emacs.

You can remove it by altering your powerline configuration. General instructions should be available with your powerline installation (or from the github repository)

To remove the keymap indicator, you have to either edit the current theme or create a new one. The default theme for shell can be found at ${POWERLINE_CONFIG}/themes/shell/default.json. You just have do remove the following block from "segments"->"left"

{
    "module": "powerline.segments.shell",
    "name": "mode"
},
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top