From e56e1f971c6890fe24996a89e2f17662c74a58de Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 9 Dec 2021 09:03:36 -0800 Subject: [PATCH] Minor edits --- functions/fish_prompt.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index c440a95..cf6e44f 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -16,7 +16,8 @@ function _tide_refresh_prompt --on-variable $_tide_prompt_var commandline --function repaint end -var="function fish_prompt +eval " +function fish_prompt _tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint jobs --query fish --command \"set _tide_pipestatus \$_tide_pipestatus @@ -37,5 +38,6 @@ end function _tide_on_fish_exit --on-event fish_exit set -e $_tide_prompt_var -end" eval "$var" -set -e _tide_add_newline _tide_prompt_num_lines _tide_prompt_var +end" + +set -e _tide_prompt_var _tide_prompt_num_lines _tide_add_newline