fish_mode_prompt.fish 494 B

123456789101112131415
  1. function fish_mode_prompt
  2. if test "$fish_key_bindings" = "fish_vi_key_bindings"
  3. or test "$fish_key_bindings" = "fish_hybrid_key_bindings"
  4. switch $fish_bind_mode
  5. case default
  6. prompt_segment blue black "N"
  7. case insert
  8. prompt_segment green black "I"
  9. case replace_one
  10. prompt_segment red black "R"
  11. case visual
  12. prompt_segment magenta black "V"
  13. end
  14. end
  15. end