Skip to content

Instantly share code, notes, and snippets.

@oobleck
Last active August 29, 2015 14:06
Show Gist options
  • Save oobleck/88f327329213506895fe to your computer and use it in GitHub Desktop.
Save oobleck/88f327329213506895fe to your computer and use it in GitHub Desktop.
Homebrew + Cask quick install for new mac bootstrapping
#!/bin/sh
function main () {
export base_casks=('google-chrome' 'firefox' 'alfred' 'textwrangler' 'dropbox' 'google-drive' 'controlplane' 'slimbatterymonitor' 'cyberduck' 'monolingual' 'transmission')
export utils_casks=('quicklook-csv' 'betterzipql')
export dev_casks=('brackets' 'sublime-text' 'filezilla' 'sourcetree' 'quicklook-json' 'prepros')
export viz_casks=('gimp' 'inkscape' 'picasa')
export cli_casks=('wget' 'node' 'git' 'htop')
export cask_path=`which brew`
export cask_install_cmd="${cask_path} cask install"
# TODO: Prompt for other lists and install them if affirmative
for CASK in "${base_casks[@]}"
do
echo "$cask_install_cmd $CASK"
done
for CASK in "${cli_casks[@]}"
do
echo "$cask_path install $CASK"
done
$cask_path cask alfred link
$cask_path cask cleanup && brew cask doctor
}
main;
@oobleck
Copy link
Author

oobleck commented Sep 23, 2014

Since Homebrew supports Brewfiles, this is unnecessary (including a cask syntax). Though this would permit prompting for optional casks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment