Added oh-my-posh to status function

This commit is contained in:
Andrea Mistrali 2021-12-17 12:37:32 +01:00
parent 51bd0516d6
commit ee52b6a547
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
1 changed files with 7 additions and 0 deletions

View File

@ -48,4 +48,11 @@ fi
echo
print -nP "$FX[bold]oh-my-posh: "
if type oh-my-posh > /dev/null; then
print -P "$FG[002]installed$FX[reset] $FX[bold]- theme: '$FG[002]$POSH_THEME'$FX[reset]"
else
print -P "$FG[001]absent$FX[reset]"
fi
# vim: set ts=2 sw=2 tw=0 ft=sh :