Skip to content

Instantly share code, notes, and snippets.

@JCash
Last active July 28, 2017 21:49
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 JCash/d408a93ea14d0155882f77763de4ef5d to your computer and use it in GitHub Desktop.
Save JCash/d408a93ea14d0155882f77763de4ef5d to your computer and use it in GitHub Desktop.
Simply my way of migrating my dev setup between computers
#!/usr/bin/env bash
WORK=~/work
EXTERNAL=$WORK/external
PROJECTS=$WORK/projects
if [ ! -e $WORK ]; then mkdir $WORK; fi
if [ "" == "`which brew`" ]
then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
function install_brew {
local check=$1
local args=$*
if [ "" == "`which ${check}`" ]
then
brew install $args
fi
}
install_brew gist
install_brew tree
install_brew ffmpeg --with-libvorbis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment