Update vi mode prompt.

* Default to showing vi mode prompt (if the current bind mode is vi). Allow overriding by setting it `theme_display_vi` to `no`.

* Remove `theme_display_vi_hide_mode`, because I don't like the prompt jumping around when changing modes.

* Override `fish_mode_prompt` because we're already handling it inside `fish_prompt`. Add a note so future code archeologists can figure out how to override.

* Add support for `replace-one` bind mode.

Fixes #65
This commit is contained in:
Justin Hileman
2016-10-18 07:04:59 -07:00
parent d744b2fe0f
commit 1f827c6bab
3 changed files with 14 additions and 6 deletions

View File

@@ -42,7 +42,6 @@ This theme is based loosely on [agnoster][agnoster].
* Background jobs (**`%`**)
* You currently have superpowers (**`$`**)
* Current vi mode
* _You'll need to `set -g theme_display_vi yes` to enable_
* `User@Host` (unless you're the default user)
* Current RVM, rbenv or chruby (Ruby) version
* Current virtualenv (Python) version
@@ -77,8 +76,7 @@ set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_ruby no
set -g theme_display_user yes
set -g theme_display_vi yes
set -g theme_display_vi_hide_mode default
set -g theme_display_vi no
set -g theme_display_date no
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes