mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-24 12:33:34 +03:00
23 lines
804 B
Fish
23 lines
804 B
Fish
function _tide_item_character
|
|
if test $_tide_last_status = 0
|
|
set -g tide_character_color $tide_character_color_success
|
|
else
|
|
set -g tide_character_color $tide_character_color_failure
|
|
end
|
|
|
|
if test "$fish_key_bindings" = fish_default_key_bindings
|
|
_tide_print_item character $tide_character_icon
|
|
else
|
|
switch $fish_bind_mode
|
|
case default
|
|
_tide_print_item character $tide_character_vi_icon_default
|
|
case insert
|
|
_tide_print_item character $tide_character_vi_icon_insert
|
|
case replace replace_one
|
|
_tide_print_item character $tide_character_vi_icon_replace
|
|
case visual
|
|
_tide_print_item character $tide_character_vi_icon_visual
|
|
end
|
|
end
|
|
end
|