-
Notifications
You must be signed in to change notification settings - Fork 0
/
fresh.sh
36 lines (26 loc) · 976 Bytes
/
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
#!/bin/sh
echo "Setting up your Mac..."
# Install Oh My Zsh if it's not installed yet
if test ! $(which omz); then
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/HEAD/tools/install.sh)"
fi
# Install Homebrew if it's not installed yet
if test ! $(which brew); then
/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
# Install global Composer packages
/usr/local/bin/composer global require laravel/installer laravel/valet beyondcode/expose
# Install Laravel Valet
$HOME/.composer/vendor/bin/valet install
# Create a workspace directory
mkdir $HOME/workspace
# Set up our custom .zshrc
rm -rf $HOME/.zshrc
ln -s $HOME/.dotfiles/.zshrc $HOME/.zshrc
# Symlink the Mackup config file to the home directory
ln -s $HOME/.dotfiles/.mackup.cfg $HOME/.mackup.cfg