From 1866adfb8852bf1aa3dc2db5e5c7d1ec33a53d5e Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 10 Nov 2021 20:39:26 +0100 Subject: [PATCH] fix: feed PWD to cli for init relates to #1207 --- src/init/omp.bash | 2 +- src/init/omp.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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