Skip to content

Instantly share code, notes, and snippets.

@christopheranderton
Last active February 13, 2018 08:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopheranderton/06ba31d7d1f813d845dbc597c043c15b to your computer and use it in GitHub Desktop.
Save christopheranderton/06ba31d7d1f813d845dbc597c043c15b to your computer and use it in GitHub Desktop.
Bash Profile aliases to force upgrade web browsers installed via Homebrew cask.
# Info: This only works on browsers installed with brew cask.
# For use in your .bash_profile .functions, .alias or whatever you want.
# Wrap it up in a function instead. Looks nicer.
# Brew don't recongnize in-app updates. So, either use in-app (faster updates) or cask reinstall.
# Remove your browsers manually (your preferences still there), and install them again with:
# brew cask install google-chrome google-chrome-canary opera opera-beta opera-developer opera-neon vivaldi webkit-nightly firefox firefoxdeveloperedition
alias upgradebrowsers="echo '$(tput bold)==> Upgrading Browsers with Force... $(tput sgr0)'; brew cask reinstall google-chrome caskroom/versions/google-chrome-canary opera opera-beta opera-developer opera-neon vivaldi webkit-nightly firefox firefoxdeveloperedition; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> All Browsers has been upgraded... $(tput sgr0)'"
alias upgradeopera="echo '$(tput bold)==> Upgrading Opera Browsers with Force... $(tput sgr0)'; brew cask reinstall opera opera-developer opera-beta opera-neon; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> Opera Browsers has been upgraded... $(tput sgr0)'"
alias upgradefirefox="echo '$(tput bold)==> Upgrading Firefox Browsers with Force... $(tput sgr0)'; brew cask reinstall firefox firefoxdeveloperedition; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> Firefox Browsers has been upgraded... $(tput sgr0)'"
alias upgradechrome="echo '$(tput bold)==> Upgrading Google Chrome Browsers with Force... $(tput sgr0)'; brew cask reinstall google-chrome caskroom/versions/google-chrome-canary; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> Google Chrome Browsers upgraded... $(tput sgr0)'"
alias upgradevivaldi="echo '$(tput bold)==> Upgrading Vivaldi with Force... $(tput sgr0)'; brew cask reinstall vivaldi; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> Vivaldi has been upgraded... $(tput sgr0)'"
alias upgradewebkit="echo '$(tput bold)==> Upgrading Vivaldi with Force... $(tput sgr0)'; brew cask reinstall webkit-nightly; brew cask cleanup; echo '$(tput bold)==> Flushing cfprefsd twice to be sure... $(tput sgr0)'; killall cfprefsd; killall cfprefsd; echo '$(tput bold)==> Webkit Nightly has been upgraded... $(tput sgr0)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment