-
Notifications
You must be signed in to change notification settings - Fork 0
/
fresh.sh
37 lines (28 loc) · 1.05 KB
/
fresh.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..."
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Removes .zshrc from $HOME (if it exists) and symlinks the .zshrc file from the .dotfiles
rm -rf $HOME/.zshrc
ln -s $HOME/.dotfiles/.zshrc $HOME/.zshrc
# Update Homebrew recipes
brew update
# Install all dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew bundle --file ./Brewfile
# Set up Git
git config --global user.name "Chris Teyerl"
git config --global user.email "[email protected]"
git config --global core.excludesfile ~/.dotfiles/.gitignore_global
# Install global Composer dependencies
composer global require laravel/installer statamic/cli
# Create projects directories
mkdir $HOME/Developer
mkdir $HOME/Developer/Archive
mkdir $HOME/Developer/Misc
mkdir $HOME/Developer/Packages
mkdir $HOME/Developer/Playground
mkdir $HOME/Developer/Sites