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?

有帮助吗?

解决方案

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"
},
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top