Weird Fish Prompt

2019-02-27 15:21发布

I am using fish as my primary shell; along with oh-my-fish

Now the first character on the fish prompt is really weird [I] as shown in the pictureFish Prompt

Kindly help me get rid of the character.

标签: shell fish
1条回答
祖国的老花朵
2楼-- · 2019-02-27 16:16

This is the vi mode indicator. It shows that you are using vi key bindings, and are currently in insert mode.

If you don't want to use vi bindings, and instead use the default (emacs) style, you can run fish_default_key_bindings to switch back.

If you want vi key bindings, but want to hide the mode indicator, you can define the fish_mode_prompt function as empty, and then save it:

> function fish_mode_prompt ; end
> funcsave fish_mode_prompt
查看更多
登录 后发表回答