dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

20_macos_homebrew.sh (396B)


      1 #!/usr/bin/env bash
      2 
      3 # OSX-stuff only
      4 [[ "$(uname)" != "Darwin" ]] && return 0
      5 
      6 [[ "$(type -P brew)" ]] && echo "Homebrew already installed." && return 0
      7 
      8 # install homebrew
      9 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
     10 
     11 # Exit if, for some reason, Homebrew is not installed.
     12 [[ ! "$(type -P brew)" ]] && echo "Homebrew failed to install." && return 1