Created
August 28, 2022 17:41
-
-
Save HenryQW/bbc4d30d10713b10d5437d5935c42ec0 to your computer and use it in GitHub Desktop.
brew update on the fly, and also keeps Dock app states.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function brewski() { | |
defaults export com.apple.dock ~/dockstate | |
brew update && brew upgrade --greedy && brew upgrade --cask --greedy && brew cleanup | |
defaults import com.apple.dock ~/dockstate | |
killall Dock | |
rm ~/dockstate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment