fix(fish): get correct error code

This commit is contained in:
L. Yeung 2022-07-05 13:01:38 +08:00 committed by Jan De Dobbeleer
parent 65192cb065
commit 253c71e0cf

View file

@ -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