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 kyeb/476fd53774d99b2dd658789c3c9d6810 to your computer and use it in GitHub Desktop.
Save kyeb/476fd53774d99b2dd658789c3c9d6810 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
if test $fish_bind_mode != insert
set_color normal
printf " "
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment