From 9ae5217a97daf0cd5389546d0d0f9efc7f96dfef Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 16 Dec 2021 19:58:31 +0100 Subject: [PATCH] fix(bash): do not provide pwd resolves #1441 --- src/init/omp.bash | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/init/omp.bash b/src/init/omp.bash index c6300dad..e4446d45 100644 --- a/src/init/omp.bash +++ b/src/init/omp.bash @@ -22,11 +22,7 @@ function _omp_hook() { omp_elapsed=$((omp_now-omp_start_time)) rm -f "$TIMER_START" fi - omp_pwd=$PWD - if [ -x "$(command -v cygpath)" ]; then - omp_pwd=$(cygpath -w "$PWD") - fi - PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --pwd="$omp_pwd" | tr -d '\0')" + PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" | tr -d '\0')" return $ret }