Skip to content

Commit

Permalink
new version of oh-my-posh breaks the init commandline, fixing to the …
Browse files Browse the repository at this point in the history
…new syntax of v24
  • Loading branch information
seefood committed Nov 5, 2024
1 parent 345d008 commit d60d806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/oh-my-posh/oh-my-posh.theme.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if _command_exists oh-my-posh; then
export POSH_THEME=${POSH_THEME:-https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/v$(oh-my-posh --version)/themes/jandedobbeleer.omp.json}
eval "$(oh-my-posh --init --shell bash --config "${POSH_THEME}")"
eval "$(oh-my-posh init bash --config "${POSH_THEME}")"
else
_log_warning "The oh-my-posh binary was not found on your PATH. Falling back to your existing PS1, please see the docs for more info."
fi

0 comments on commit d60d806

Please sign in to comment.