Auto-upgrade oh-my-posh each time.
This commit is contained in:
parent
970fa0f04c
commit
c0c5b24a6b
1 changed files with 9 additions and 4 deletions
|
@ -57,8 +57,13 @@ function ud() {
|
|||
}
|
||||
|
||||
function upgrade() {
|
||||
case $(lsb_release -si) in
|
||||
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
||||
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
|
||||
esac
|
||||
if [ $(uname -s) != "Darwin" ]; then
|
||||
case $(lsb_release -si) in
|
||||
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
||||
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
|
||||
esac
|
||||
else
|
||||
brew update && brew upgrade && brew cleanup
|
||||
fi
|
||||
oh-my-posh upgrade
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue