forked from matthewmccullough/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
install_apps.sh
executable file
·40 lines (33 loc) · 1.1 KB
/
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
# MesloLGS NF fonts for Powerline, https://github.com/romkatv/powerlevel10k/blob/master/README.md#manual-font-installation
## Maintenance
softwareupdate -i -a # Install all software updates