-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.sh
69 lines (62 loc) · 1.09 KB
/
provision.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
#!/bin/bash
dotfiles=(
'.zshrc'
'.tmux.conf'
'.vimrc'
)
brew_packages=(
'nvm'
'tmux'
'reattach-to-user-namespace'
'wget'
'htop'
'nmap'
'unrar'
'tree'
'jq'
)
cask_apps=(
'google-chrome'
'iterm2'
'spotify'
'sublime-text'
'docker'
'discord'
'postman'
'istat-menus'
'1password'
'ngrok'
'svn'
'karabiner-elements'
'bartender'
'sizeup'
'visual-studio-code'
'prusaslicer'
'vlc'
'steam'
'font-inconsolata-g-for-powerline'
)
dir=$(pwd)
# Symlink all dotfiles
for dotfile in "${dotfiles[@]}"
do
ln -s $dir$dotfile ~/
done
# fish shell pre-populates these files
rm ~/.config/fish/config.fish
rm ~/.config/fish/aliases.fish
ln -s ${dir}/config.fish /Users/joe/.config/fish/
ln -s ${dir}/aliases.fish /Users/joe/.config/fish/
# Install packages with homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/cask-fonts
brew update
for package in "${brew_packages[@]}"
do
brew install $package
done
# Install applications with homebrew cask
for app in "${cask_apps[@]}"
do
brew install --cask $app
done