-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·63 lines (49 loc) · 1.67 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
echo "Setting up your Mac..."
echo "Installing Homebrew..."
# 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/HEAD/install.sh)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
echo "Installing Brew Dependencies..."
brew tap homebrew/bundle
brew bundle
# create system directory for nvm which is installed with homebrew
mkdir ~/.nvm
# Make ZSH the default shell environment
chsh -s $(which zsh)
# Check for Composer and install if we don't have it
echo "Installing Composer and Dependencies..."
if test ! $(which composer); then
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
fi
## Install VSCode Extensions
bash vscode-setup.sh
# Install global Composer packages
# Safer alternative to 'composer global require'.
composer global require consolidation/cgr
# enables parallel installation of packages
composer global require hirak/prestissimo
cgr bramus/mixed-content-scan
cgr friendsofphp/php-cs-fixer
cgr laravel/installer
cgr laravel/valet
cgr phpmd/phpmd
cgr spatie/http-status-check
cgr spatie/phpunit-watcher
# install laravel/homestead
echo "Installing Laravel/Homestead..."
vagrant box add laravel/homestead
git clone https://github.com/laravel/homestead.git ~/Homestead
mkdir $HOME/.dotfiles
cp -r $PWD/dotfiles/* $HOME/.dotfiles
# echo "Backing up current ~/.zshrc file to ~/.dotfiles/.zshrc_backup"
mv $HOME/.zshrc $HOME/.dotfiles/.zshrc_backup
# create symlink for zsh config
rm $HOME/.zshrc
ln -s $HOME/.dotfiles/zsh/.zshrc $HOME/.zshrc
source $HOME/.zshrc