Skip to content

Commit

Permalink
Tiny startup improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Jan 11, 2024
1 parent d3079fc commit 812fb9b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions functions/fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if contains newline $_tide_left_items # two line prompt initialization
test "$tide_left_prompt_frame_enabled" = true &&
set -l top_left_frame "$prompt_and_frame_color╭─" &&
set -l bot_left_frame "$prompt_and_frame_color╰─" &&
set column_offset (math $column_offset-2)
set column_offset 3
test "$tide_right_prompt_frame_enabled" = true &&
set -l top_right_frame "$prompt_and_frame_color─╮" &&
set -l bot_right_frame "$prompt_and_frame_color─╯" &&
Expand Down Expand Up @@ -145,9 +145,10 @@ end"
end
end

eval "function _tide_on_fish_exit --on-event fish_exit
# Inheriting instead of evaling because here load time is more important than runtime
function _tide_on_fish_exit --on-event fish_exit --inherit-variable prompt_var
set -e $prompt_var
end"
end

if test "$tide_prompt_transient_enabled" = true
function _tide_enter_transient
Expand Down

0 comments on commit 812fb9b

Please sign in to comment.