-
Notifications
You must be signed in to change notification settings - Fork 78
/
install_apps.sh
executable file
·40 lines (33 loc) · 1019 Bytes
/
install_apps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e # Failed commands will cause an immediate exit
# Inspired by: https://gist.github.com/t-io/8255711
test_for_home_brew_installation()
{
which -s brew
if [[ $? != 0 ]] ; then
echo "Installing Homebrew."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Homebrew 'brew' is already installed. Now updating."
brew update
fi
}
## Use Brewfile in $CWD to install formulae and casks
## Info at https://github.com/Homebrew/homebrew-bundle
brew tap homebrew/bundle
brew bundle
test_for_xcode_installation()
{
if hash xcode-select -v 2>/dev/null; then
echo "XCode is already installed. Continuing."
else
# Install XCode
xcode-select --install
fi
}
## Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
## TODO: Find out how to automatedly install
# Box desktop
## Maintenance
softwareupdate -i -a # Install all software updates