diff --git a/src/init/omp.bash b/src/init/omp.bash index ae46c46c6155..e4446d45e7e2 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")" + PS1="$(::OMP:: --config="$POSH_THEME" --shell=bash --error="$ret" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" | tr -d '\0')" return $ret }