From 253c71e0cfa22cc00a3be6821097f0ecc677e901 Mon Sep 17 00:00:00 2001 From: "L. Yeung" Date: Tue, 5 Jul 2022 13:01:38 +0800 Subject: [PATCH] fix(fish): get correct error code --- src/shell/scripts/omp.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/scripts/omp.fish b/src/shell/scripts/omp.fish index 1613ee81..91b44a27 100644 --- a/src/shell/scripts/omp.fish +++ b/src/shell/scripts/omp.fish @@ -5,11 +5,11 @@ set --global omp_tooltip_command "" set --global omp_transient 0 function fish_prompt + set --local omp_status_cache_temp $status # clear from cursor to end of screen as # commandline --function repaint does not do this # see https://github.com/fish-shell/fish-shell/issues/8418 printf \e\[0J - set --local omp_status_cache_temp $status if test "$omp_transient" = "1" '::OMP::' print transient --config $POSH_THEME --shell fish --error $omp_status_cache --execution-time $omp_duration --stack-count $omp_stack_count --shell-version $FISH_VERSION return