Skip to content

Instantly share code, notes, and snippets.

@manojkarthick
Created July 30, 2020 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manojkarthick/ab041bc49111b6f5c9ea0c969f75e9e2 to your computer and use it in GitHub Desktop.
Save manojkarthick/ab041bc49111b6f5c9ea0c969f75e9e2 to your computer and use it in GitHub Desktop.
Casks install/uninstall
#!/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