-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·74 lines (54 loc) · 1.83 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
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
echo "Setting up Mac..."
# 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
# Can't do bundle install without mas being seutp first
if test ! $(which mas); then
brew install mas
fi
mas signin $(mas account)
# Move Brewfile into place
ln -fs ~/.dotfiles/Brewfile ~/
# Install all our dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew bundle
# Install fish config
ln -fs ~/.dotfiles/.config ~/
# Install oh-my-fish
curl -L https://get.oh-my.fish | fish
# Install my-sushi
ln -fs ~/.dotfiles/omf-mysushi ~/.local/share/omf/themes/
# Use Sushi theme
omf theme omf-mysushi | fish
# Make fish the default shell environment
chsh -s $(which fish)
# ZSH Config (Just in case)
ln -fs ~/.dotfiles/.zshrc ~/
# Install global Composer packages
/usr/local/bin/composer global require laravel/installer laravel/lumen-installer laravel/valet tightenco/jigsaw spatie/http-status-check bramus/mixed-content-scan laravel/spark-installer
# Install Laravel Valet
$HOME/.composer/vendor/bin/valet install
# Install global NPM packages
npm install --global yarn
npm install -g reveal-md
# Create a Sites directory
# This is a default directory for macOS user accounts but doesn't comes pre-installed
mkdir $HOME/Sites
# Start Web Services
# brew services start postgresql
# brew services start mariadb
sudo brew services start dnsmasq
# Vim Setup
# Install .vimrc
ln -fs ~/.dotfiles/.vimrc ~/
ln -fs ~/.dotfiles/.vim ~/
# Install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Set macOS preferences
# We will run this last because this will reload the shell
source default-preferences