fix: feed PWD to cli for init

relates to #1207
This commit is contained in:
Jan De Dobbeleer 2021-11-10 20:39:26 +01:00 committed by Jan De Dobbeleer
parent d3ab141cd5
commit 1866adfb88
2 changed files with 2 additions and 2 deletions

View file

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

View file

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