tide/functions/_tide_item_character.fish
2021-09-30 21:18:16 -07:00

23 lines
655 B
Fish

function _tide_item_character
if test $_tide_status = 0
set_color $tide_character_color
else
set_color $tide_character_color_failure
end
if test "$fish_key_bindings" = fish_default_key_bindings
echo -ns $tide_character_icon
else
switch $fish_bind_mode
case insert
echo -ns $tide_character_icon
case default
echo -ns $tide_character_vi_icon_default
case replace replace_one
echo -ns $tide_character_vi_icon_replace
case visual
echo -ns $tide_character_vi_icon_visual
end
end
end