diff --git a/src/init/omp.bash b/src/init/omp.bash index 5fa20519..a148331a 100644 --- a/src/init/omp.bash +++ b/src/init/omp.bash @@ -12,7 +12,7 @@ function _update_ps1() { omp_elapsed=$(($omp_now-$omp_start_time)) rm $TIMER_START fi - PS1="$(::OMP:: --config $POSH_THEME --error $? --execution-time $omp_elapsed)" + PS1="$(::OMP:: --config $POSH_THEME --error $? --execution-time $omp_elapsed --shell bash)" } if [ "$TERM" != "linux" ] && [ -x "$(command -v ::OMP::)" ]; then diff --git a/src/init/omp.fish b/src/init/omp.fish index a188f0f3..5be42360 100644 --- a/src/init/omp.fish +++ b/src/init/omp.fish @@ -1,4 +1,4 @@ function fish_prompt set -l omp_duration "$CMD_DURATION$cmd_duration" - ::OMP:: --config ::CONFIG:: --error $status --execution-time $omp_duration + ::OMP:: --config ::CONFIG:: --error $status --execution-time $omp_duration --shell fish end diff --git a/src/init/omp.zsh b/src/init/omp.zsh index e30b9fe3..c869a94b 100644 --- a/src/init/omp.zsh +++ b/src/init/omp.zsh @@ -11,7 +11,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 --eval)" + eval "$(::OMP:: --config $POSH_THEME --error $omp_last_error --execution-time $omp_elapsed --eval --shell zsh)" unset omp_start_time unset omp_now unset omp_elapsed