Last active
August 29, 2015 14:06
-
-
Save oobleck/88f327329213506895fe to your computer and use it in GitHub Desktop.
Homebrew + Cask quick install for new mac bootstrapping
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
#!/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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since Homebrew supports Brewfiles, this is unnecessary (including a cask syntax). Though this would permit prompting for optional casks.