From defabdd772fd7dacfea324202f9394b2c6ffc719 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Mon, 30 May 2022 10:34:53 -0700 Subject: [PATCH] Shorten already-useless variable names --- functions/_tide_2_line_prompt.fish | 2 +- functions/_tide_print_item.fish | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/_tide_2_line_prompt.fish b/functions/_tide_2_line_prompt.fish index 68cadc5..e9017af 100644 --- a/functions/_tide_2_line_prompt.fish +++ b/functions/_tide_2_line_prompt.fish @@ -26,6 +26,6 @@ end function _tide_item_newline set_color $prev_bg_color -b normal - var=tide_"$_tide_side"_prompt_suffix echo $$var + v=tide_"$_tide_side"_prompt_suffix echo $$v set -g add_prefix end diff --git a/functions/_tide_print_item.fish b/functions/_tide_print_item.fish index 3a3f333..db5c98b 100644 --- a/functions/_tide_print_item.fish +++ b/functions/_tide_print_item.fish @@ -1,11 +1,11 @@ function _tide_print_item -a item - var=tide_"$item"_bg_color set -f item_bg_color $$var + v=tide_"$item"_bg_color set -f item_bg_color $$v if set -e add_prefix set_color $item_bg_color -b normal - var=tide_"$_tide_side"_prompt_prefix echo -ns $$var + v=tide_"$_tide_side"_prompt_prefix echo -ns $$v else if test "$item_bg_color" = "$prev_bg_color" - var=tide_"$_tide_side"_prompt_separator_same_color echo -ns $_tide_color_separator_same_color$$var + v=tide_"$_tide_side"_prompt_separator_same_color echo -ns $_tide_color_separator_same_color$$v else if test $_tide_side = left set_color $prev_bg_color -b $item_bg_color echo -ns $tide_left_prompt_separator_diff_color @@ -14,7 +14,7 @@ function _tide_print_item -a item echo -ns $tide_right_prompt_separator_diff_color end - var=tide_"$item"_color set_color $$var -b $item_bg_color + v=tide_"$item"_color set_color $$v -b $item_bg_color echo -ns $_tide_pad $argv[2..] $_tide_pad