Add brew autoremove to upgrade() on macOS.
This commit is contained in:
parent
030af377ff
commit
a06f450d35
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ function ud() {
|
||||||
|
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
if [ $(uname -s) = "Darwin" ]; then
|
if [ $(uname -s) = "Darwin" ]; then
|
||||||
brew update && brew upgrade && brew upgrade --cask --greedy && brew cleanup
|
brew update && brew upgrade && brew upgrade --cask --greedy && brew autoremove && brew cleanup
|
||||||
rm -rf ~/Library/Caches/Homebrew/*
|
rm -rf ~/Library/Caches/Homebrew/*
|
||||||
elif [ $(uname -s) = "FreeBSD" ]; then
|
elif [ $(uname -s) = "FreeBSD" ]; then
|
||||||
pkg update -f
|
pkg update -f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue