2020-05-20 20:05:33 +03:00
|
|
|
function _tide_item_prompt_char
|
2020-12-26 03:54:24 +03:00
|
|
|
if test $_tide_last_pipestatus[-1] -eq 0
|
2020-05-19 21:01:01 +03:00
|
|
|
set_color $tide_prompt_char_success_color
|
2020-05-15 07:53:37 +03:00
|
|
|
else
|
2020-05-19 21:01:01 +03:00
|
|
|
set_color $tide_prompt_char_failure_color
|
2020-05-15 07:53:37 +03:00
|
|
|
end
|
2020-09-20 05:30:12 +03:00
|
|
|
|
|
|
|
if test "$fish_key_bindings" = 'fish_default_key_bindings'
|
|
|
|
printf '%s' $tide_prompt_char_icon' '
|
|
|
|
else
|
|
|
|
switch $fish_bind_mode
|
|
|
|
case default
|
|
|
|
printf '%s' $tide_prompt_char_vi_default_icon' '
|
|
|
|
case insert
|
|
|
|
printf '%s' $tide_prompt_char_vi_insert_icon' '
|
|
|
|
case replace replace_one
|
|
|
|
printf '%s' $tide_prompt_char_vi_replace_icon' '
|
|
|
|
case visual
|
|
|
|
printf '%s' $tide_prompt_char_vi_visual_icon' '
|
|
|
|
end
|
|
|
|
end
|
2021-01-01 07:14:55 +03:00
|
|
|
end
|