-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·37 lines (27 loc) · 1.08 KB
/
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
#!/bin/sh
echo "Setting up your Mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/tijs/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
echo "⚠️ You should install Prey manually, go to https://preyproject.com"
read -p "Continue? press enter"
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew bundle
# Install Symfony certificate
symfony server:ca:install
# Make ZSH the default shell environment
chsh -s $(which zsh)
# Add the oh-my-zsh theme we want to use in the themes folder thru a link
mkdir -p ~/.oh-my-zsh/themes
ln -s ~/dotfiles/zsh/tijs.zsh-theme ~/.oh-my-zsh/themes/tijs.zsh-theme
# Allow Touch ID for sudo
sudo sed -i '.bak' '1s/^/auth sufficient pam_tid.so\'$'\n/g' /etc/pam.d/sudo
# Set macOS preferences
# We will run this last because this will reload the shell
source .macos