From 5d17d4c6dc963fafd88c2cbbe72ed2ef8dd034ea Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Wed, 20 Sep 2023 12:18:15 -0700 Subject: [PATCH] Rename transient variable and add it to configs --- functions/fish_prompt.fish | 6 +++--- functions/tide/configure/configs/classic.fish | 1 + functions/tide/configure/configs/lean.fish | 1 + functions/tide/configure/configs/rainbow.fish | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 2c12ec75..84350a15 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -34,7 +34,7 @@ if contains newline $_tide_left_items # two line prompt initialization set -l bot_right_frame "$prompt_and_frame_color─╯" && set column_offset (math $column_offset-2) - if test "$tide_transient_enabled" = true + if test "$tide_prompt_transient_enabled" = true eval " function fish_prompt _tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint @@ -93,7 +93,7 @@ else # one line prompt initialization math 5 -$tide_prompt_min_cols | read -l column_offset test $column_offset -ge 0 && set column_offset "+$column_offset" - if test "$tide_transient_enabled" = true + if test "$tide_prompt_transient_enabled" = true eval " function fish_prompt set -lx _tide_status \$status @@ -148,7 +148,7 @@ eval "function _tide_on_fish_exit --on-event fish_exit set -e $prompt_var end" -if test "$tide_transient_enabled" = true +if test "$tide_prompt_transient_enabled" = true function _tide_enter_transient commandline --is-valid # If commandline is complete (i.e pressing enter will produce a new prompt) diff --git a/functions/tide/configure/configs/classic.fish b/functions/tide/configure/configs/classic.fish index 52ffe1bb..a0f29791 100644 --- a/functions/tide/configure/configs/classic.fish +++ b/functions/tide/configure/configs/classic.fish @@ -69,6 +69,7 @@ tide_prompt_color_frame_and_connection 6C6C6C tide_prompt_color_separator_same_color 949494 tide_prompt_min_cols 34 tide_prompt_pad_items true +tide_prompt_transient_enabled false tide_pulumi_bg_color 444444 tide_pulumi_color F7BF2A tide_pwd_bg_color 444444 diff --git a/functions/tide/configure/configs/lean.fish b/functions/tide/configure/configs/lean.fish index 02b782ff..bf276302 100644 --- a/functions/tide/configure/configs/lean.fish +++ b/functions/tide/configure/configs/lean.fish @@ -69,6 +69,7 @@ tide_prompt_color_frame_and_connection 6C6C6C tide_prompt_color_separator_same_color 949494 tide_prompt_min_cols 34 tide_prompt_pad_items false +tide_prompt_transient_enabled false tide_pulumi_bg_color normal tide_pulumi_color F7BF2A tide_pwd_bg_color normal diff --git a/functions/tide/configure/configs/rainbow.fish b/functions/tide/configure/configs/rainbow.fish index 9e819bcc..b827dfb7 100644 --- a/functions/tide/configure/configs/rainbow.fish +++ b/functions/tide/configure/configs/rainbow.fish @@ -69,6 +69,7 @@ tide_prompt_color_frame_and_connection 6C6C6C tide_prompt_color_separator_same_color 949494 tide_prompt_min_cols 34 tide_prompt_pad_items true +tide_prompt_transient_enabled false tide_pulumi_bg_color F7BF2A tide_pulumi_color 000000 tide_pwd_bg_color 3465A4