dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

brew_setup.sh (766B)


      1 #!/usr/bin/env bash
      2 function __mkbrewdir()
      3 {
      4     if [[ -d "/usr/local/$1" ]]
      5     then
      6         echo "Directory /usr/local/$1 already exists"
      7         return
      8     else
      9         echo "Creating directory /usr/local/$1"
     10         mkdir /usr/local/$1
     11     fi
     12     chown $LOGNAME:admin /usr/local/$1
     13 }
     14 
     15 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
     16 echo "Reassigning directories to $LOGNAME. May need $USER password again."
     17 sudo __mkbrewdir "Caskroom"
     18 sudo __mkbrewdir "Cellar"
     19 sudo __mkbrewdir "Frameworks"
     20 sudo __mkbrewdir "Homebrew"
     21 sudo __mkbrewdir "bin"
     22 sudo __mkbrewdir "etc"
     23 sudo __mkbrewdir "include"
     24 sudo __mkbrewdir "lib"
     25 sudo __mkbrewdir "opt"
     26 sudo __mkbrewdir "sbin"
     27 sudo __mkbrewdir "share"
     28 sudo __mkbrewdir "var"