fix: hardcode shell for init

resolves #540
This commit is contained in:
Jan De Dobbeleer 2021-03-18 08:49:29 +01:00 committed by Jan De Dobbeleer
parent c185ebd09c
commit e7cccf5978
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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