mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 11:59:40 -08:00
parent
c185ebd09c
commit
e7cccf5978
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue