Skip to content

Commit

Permalink
Rename transient variable and add it to configs
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Sep 20, 2023
1 parent 2652ed7 commit 5d17d4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions functions/tide/configure/configs/classic.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions functions/tide/configure/configs/lean.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions functions/tide/configure/configs/rainbow.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d17d4c

Please sign in to comment.