From eea9e4b7475125b433386511c1df29bbb4198edc Mon Sep 17 00:00:00 2001 From: Austen Date: Mon, 7 Jul 2014 04:36:19 -0400 Subject: [PATCH] Added new packages. sync.sh -s for mac now installs brew cask and brew cask apps --- sync.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sync.sh b/sync.sh index e327fb0..2deb76e 100755 --- a/sync.sh +++ b/sync.sh @@ -29,9 +29,17 @@ while getopts ":hbsdtcl" VALUE "$@"; do vim +BundleInstall +qa fi if [ "$VALUE" = "s" ] ; then - echo "Installing server applications:" - echo $(grep -vE "^\s*#" server.txt | tr "\n" " ") - sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ") + if [ "$(uname)" != "Darwin" ]; then + echo "Installing server applications:" + echo $(grep -vE "^\s*#" server.txt | tr "\n" " ") + sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ") + else + if [ -d "/usr/local/Library/Taps/phinze/homebrew-cask" ] ; then + brew tap phinze/cask + brew cask + fi + brew cask install textexpander controlplane gimp inkscape adium vlc iterm2 steam + fi fi if [ "$VALUE" = "d" ] ; then echo "Installing desktop applications" @@ -39,7 +47,7 @@ while getopts ":hbsdtcl" VALUE "$@"; do echo $(grep -vE "^\s*#" desktop.txt | tr "\n" " ") sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ") else - brew install autojump ncdu htop vim youtube-dl tree sshfs ircii + brew install autojump ncdu htop vim youtube-dl tree sshfs ircii brew-cask imagemagick node ffmpeg wget fi fi if [ "$VALUE" = "t" ] ; then