mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-22 23:03:26 +03:00
23 lines
655 B
Fish
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
|