dotfiles

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

commit 0f1a90b9e4f8a714002bc34c05f529f21fc4fe02
parent 89fc12b3438f0cee399d5e83b7045a1125afa05a
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed, 27 Sep 2017 15:51:47 -0400

revise structure according to cowboy/dotfiles

Diffstat:
Ainit/10_osx_xcode.sh | 6++++++
Ainit/20_osx_homebrew.sh | 10++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/init/10_osx_xcode.sh b/init/10_osx_xcode.sh @@ -0,0 +1,6 @@ +# OSX-stuff only +[[ "$(uname)" != "Darwin" ]] && return 1 + +if [[ ! -d "$('xcode-select' -print-path 2>/dev/null)" ]]; then + sudo xcode-select -switch /usr/bin +fi diff --git a/init/20_osx_homebrew.sh b/init/20_osx_homebrew.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# OSX-stuff only +[[ "$(uname)" != "Darwin" ]] && exit 1 + +# install homebrew +ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + +# Exit if, for some reason, Homebrew is not installed. +[[ ! "$(type -P brew)" ]] && echo "Homebrew failed to install." && return 1