-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·41 lines (31 loc) · 948 Bytes
/
install.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
41
#!/bin/sh
setup_macos = 0
echo "Setting up your Mac..."
sudo -v
echo "Checking if Homebrew is installed..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew bundle
# Link installed apps to /Applications
brew linkapps
# Make Fish the default shell environment
echo "Setting up fish as default and installing oh-my-fish"
chsh -s $(which fish)
curl -L https://get.oh-my.fish | fish
# Create directory for all my code repositories.
mkdir -p $HOME/dev
mkdir -p ~/.config/fish
# Set macOS preferences
# We will run this last because this will reload the shell
if setup_macos; then
source .macos
fi
./symlink-setup.sh
ln -s ./config/fish ~/.config/fish