mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
fix(cygwin): get correct path
This commit is contained in:
parent
af112277a8
commit
a595278f5f
|
@ -22,7 +22,11 @@ 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" --pwd="$PWD" | tr -d '\0')"
|
||||
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')"
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue