forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·58 lines (44 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
#!/bin/sh
echo "Setting up your Mac..."
echo "Starting with brew."
echo '----------------------'
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew bundle
# Make ZSH the default shell environment
# chsh -s $(which zsh)
#Do NPM specific stuff
npm set progress=false
echo 'Installing composer.'
echo '--------------------'
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
echo 'Install global Composer packages'
echo '--------------------'
/usr/local/bin/composer global require laravel/installer laravel/lumen-installer laravel/valet tightenco/jigsaw hirak/prestissimo
echo "Install Laravel Valet"
echo '----------------------'
$HOME/.composer/vendor/bin/valet install
echo 'Install global NPM packages'
echo '--------------------'
npm install -g yarn gulp eslint jshint vue vue-cli
# other usefulls ones include: jsonlint grunt grunt-cli jscs jshint
# Create a Sites directory
# This is a default directory for OS X user accounts but doesn't comes pre-installed
mkdir $HOME/Sites
mkdir $HOME/Projects
# Move .dotfiles with settings to home directory (if you don't have a mackup backup).
echo 'copy settings files to ~/ directory'
echo '-----------------------------------'
cp -R settings/. $HOME
# TEMP REMOVED - because doesn't seem to work correctly with Sierra
# We will run this last because this will reload the shell
#echo 'Set OS X preferences'
#echo '--------------------'
#source .macos