From 812fb9b6d6e0d8c2b575d3fe0c7b31a796214bc4 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 11 Jan 2024 13:11:24 -0800 Subject: [PATCH] Tiny startup improvements --- functions/fish_prompt.fish | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index a9f0bdf..994513d 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -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─╯" && @@ -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