fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
4c30c9ec2
master
1function fish_default_mode_prompt --description"Display vi prompt mode" 2# Do nothing if not in vi mode 3if not contains --" $fish_key_bindings " fish_vi_key_bindings fish_hybrid_key_bindings 4return 5end 6switch $fish_bind_mode 7case default 8set_color --bold red 9echo '[N]' 10case insert 11set_color --bold green 12echo '[I]' 13case replace_one 14set_color --bold green 15echo '[R]' 16case replace 17set_color --bold cyan 18echo '[R]' 19case visual 20set_color --bold magenta 21echo '[V]' 22case operator f F t T 23set_color --bold cyan 24echo '[N]' 25end 26set_color --reset 27echo -n' ' 28end