Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbailey4/c65e9b3021acf2c8a5bcf381dca7e6fc to your computer and use it in GitHub Desktop.
Save gbailey4/c65e9b3021acf2c8a5bcf381dca7e6fc to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment