From ac63f940759c609ef78edc95ba94906377f48ba4 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 11 Nov 2021 10:46:04 -0800 Subject: [PATCH] Minor edits to character item --- functions/_tide_item_character.fish | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/functions/_tide_item_character.fish b/functions/_tide_item_character.fish index fcd9527..d03715e 100644 --- a/functions/_tide_item_character.fish +++ b/functions/_tide_item_character.fish @@ -1,13 +1,7 @@ function _tide_item_character - if test $_tide_status = 0 - set_color $tide_character_color - else - set_color $tide_character_color_failure - end + test $_tide_status = 0 && set_color $tide_character_color || set_color $tide_character_color_failure - if test "$fish_key_bindings" = fish_default_key_bindings - echo -ns $tide_character_icon - else + test "$fish_key_bindings" = fish_default_key_bindings && echo -ns $tide_character_icon || switch $fish_bind_mode case insert echo -ns $tide_character_icon @@ -18,5 +12,4 @@ function _tide_item_character case visual echo -ns $tide_character_vi_icon_visual end - end end