mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
fix(fish): get correct error code
This commit is contained in:
parent
65192cb065
commit
253c71e0cf
|
@ -5,11 +5,11 @@ set --global omp_tooltip_command ""
|
||||||
set --global omp_transient 0
|
set --global omp_transient 0
|
||||||
|
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
|
set --local omp_status_cache_temp $status
|
||||||
# clear from cursor to end of screen as
|
# clear from cursor to end of screen as
|
||||||
# commandline --function repaint does not do this
|
# commandline --function repaint does not do this
|
||||||
# see https://github.com/fish-shell/fish-shell/issues/8418
|
# see https://github.com/fish-shell/fish-shell/issues/8418
|
||||||
printf \e\[0J
|
printf \e\[0J
|
||||||
set --local omp_status_cache_temp $status
|
|
||||||
if test "$omp_transient" = "1"
|
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
|
'::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
|
return
|
||||||
|
|
Loading…
Reference in a new issue