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:
Chris Bargren 2021-04-19 13:38:28 -07:00 committed by Jan De Dobbeleer
parent 094b70f9b2
commit f7841eb43c

View file

@ -5,8 +5,8 @@ function omp_preexec() {
}
function omp_precmd() {
omp_stack_count=${#dirstack[@]}
omp_last_error=$?
omp_stack_count=${#dirstack[@]}
omp_elapsed=-1
if [ $omp_start_time ]; then
omp_now=$(::OMP:: --millis)