Created
July 30, 2020 03:35
-
-
Save manojkarthick/ab041bc49111b6f5c9ea0c969f75e9e2 to your computer and use it in GitHub Desktop.
Casks install/uninstall
This file contains 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
#!/bin/bash | |
# List of applications to operate on | |
# Make sure the name of the application matches the formulae on brew.sh | |
applications=( | |
1password | |
docker | |
firefox | |
google-chrome | |
intellij-idea | |
iterm2 | |
monitorcontrol | |
slack | |
spectacle | |
vscodium | |
) | |
manual=( | |
logitech-options | |
) | |
# Simple bash functions for installation/uninstallation of applications | |
installation() { | |
for i in "${applications[@]}" | |
do | |
set -x | |
brew cask install $i | |
done | |
} | |
uninstallation() { | |
for i in "${applications[@]}" | |
do | |
set -x | |
brew cask uninstall $i | |
done | |
} | |
case "$1" in | |
help) | |
echo "Available commands: install / uninstall" | |
;; | |
install) | |
echo "Starting installation of desired casks..." | |
installation | |
;; | |
uninstall) | |
echo "Starting un-installation of desired casks..." | |
uninstallation | |
;; | |
*) | |
echo "Not sure what you mean." | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment