Created
July 7, 2016 01:38
-
-
Save floam/e89ed4a882eb629b0a70040f876479c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_mode_prompt --description 'Displays the current mode' | |
# Do nothing if not in vi mode | |
if test "$fish_key_bindings" = "fish_vi_key_bindings" | |
switch $fish_bind_mode | |
case default | |
set_color --bold red | |
echo 🅽 | |
case insert | |
set_color --bold green | |
echo 🅸 | |
case replace-one | |
set_color --bold green | |
echo 🆁 | |
case visual | |
set_color --bold brmagenta | |
echo 🆅 | |
end | |
set_color normal | |
printf " " | |
end | |
end |
Thanks for this!
Thanks. Works great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, this worked great!
minor edit:
s/replace-one/replace_one