diff --git a/src/init/omp.bash b/src/init/omp.bash index e4446d45..67b7fc37 100644 --- a/src/init/omp.bash +++ b/src/init/omp.bash @@ -22,7 +22,7 @@ function _omp_hook() { omp_elapsed=$((omp_now-omp_start_time)) rm -f "$TIMER_START" fi - PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" | tr -d '\0')" + PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --pwd="$PWD" | tr -d '\0')" return $ret } diff --git a/src/init/omp.zsh b/src/init/omp.zsh index 4b8f11a4..e0d8ff88 100644 --- a/src/init/omp.zsh +++ b/src/init/omp.zsh @@ -14,7 +14,7 @@ function _omp-precmd() { omp_now=$(::OMP:: --millis) omp_elapsed=$(($omp_now-$omp_start_time)) fi - eval "$(::OMP:: --config="$POSH_THEME" --error="$omp_last_error" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --eval --shell=zsh)" + eval "$(::OMP:: --config="$POSH_THEME" --error="$omp_last_error" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --eval --shell=zsh --pwd="$PWD")" unset omp_start_time unset omp_now unset omp_elapsed