mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
fix(zsh): store exit code first in precmd hook
Addresses an issue causing exit code segments to incorrectly report an exit code of `0`
This commit is contained in:
parent
094b70f9b2
commit
f7841eb43c
|
@ -5,8 +5,8 @@ function omp_preexec() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function omp_precmd() {
|
function omp_precmd() {
|
||||||
omp_stack_count=${#dirstack[@]}
|
|
||||||
omp_last_error=$?
|
omp_last_error=$?
|
||||||
|
omp_stack_count=${#dirstack[@]}
|
||||||
omp_elapsed=-1
|
omp_elapsed=-1
|
||||||
if [ $omp_start_time ]; then
|
if [ $omp_start_time ]; then
|
||||||
omp_now=$(::OMP:: --millis)
|
omp_now=$(::OMP:: --millis)
|
||||||
|
|
Loading…
Reference in a new issue