oh-my-posh/init/omp.bash
2020-12-23 13:54:36 +01:00

10 lines
230 B
Bash

export POSH_THEME=::CONFIG::
function _update_ps1() {
PS1="$(::OMP:: --config $POSH_THEME --error $?)"
}
if [ "$TERM" != "linux" ] && [ -x "$(command -v ::OMP::)" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi