Auto-upgrade oh-my-posh each time.

This commit is contained in:
Bartek Stalewski 2024-08-06 02:05:38 +02:00
parent 970fa0f04c
commit c0c5b24a6b
No known key found for this signature in database

View file

@ -57,8 +57,13 @@ function ud() {
} }
function upgrade() { function upgrade() {
case $(lsb_release -si) in if [ $(uname -s) != "Darwin" ]; then
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;; case $(lsb_release -si) in
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;; Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
esac VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
esac
else
brew update && brew upgrade && brew cleanup
fi
oh-my-posh upgrade
} }