/
setup_osx.sh
129 lines (88 loc) · 2.72 KB
/
setup_osx.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
# User binaries
mkdir $HOME/bin
## Utilities
# Google Chrome
open -g "http://www.google.com/chrome"
# Alfred
open -g "https://www.alfredapp.com"
# Source Code Pro
open -g "https://github.com/adobe-fonts/source-code-pro/releases"
# iTerm 2
open -g "https://iterm2.com/downloads.html"
# 1Password
open -g "https://1password.com/downloads"
# Dropbox
open "https://www.dropbox.com/downloading?os=mac"
mkdir -p $HOME/dev
DROPBOX_DIR="$HOME/Dropbox"
ln -s "$DROPBOX_DIR/Development" "$HOME/dev/personal"
read -s -p "Install Dropbox then press ENTER to continue..."
## Design Tools
# Figma
open -g "https://www.figma.com/downloads"
# Sketch
open -g "https://www.sketch.com"
# Principle
open -g "http://principleformac.com"
## Development Tools
# VS Code
open -g "https://code.visualstudio.com/docs/?dv=osx"
# Dash
open -g "https://kapeli.com/dash"
# VIM Plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Xcode Command Line Tools
xcode-select --install
read -s -p "Install Xcode command line tools then press ENTER to continue..."
# Xcode
read -s -p "Install Xcode via App Store then press ENTER to continue..."
# Remove repeat-blocking for IDEs
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
## Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
read -s -p "Fix any errors with Homebrew then press ENTER to continue..."
# Git / Hub
brew install git hub gpg
# Languages/Platforms/SDKs
# Node.js
brew install node
npm install -g jshint grunt-cli
# JSON Processor
brew install jq
# Miscellaneous
brew install ack autojump watch docker gpg
# Ruby
brew install ruby
gem install bundler
# Use local versions of these per repo
# gem install cocoapods
# gem install fastlane -NV
# Python
brew install python
pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade tw2.pygmentize
pip3 install --upgrade pyopenssl
## Shells
# Bash
brew install bash
# ZSH
brew install --without-etcdir zsh
source $HOME/.zshrc
# Oh My ZSH
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Replace dotfiles
zsh
DOT_DIR=$HOME/dotfiles
git clone https://github.com/structAnkit/dotfiles.git $DOT_DIR
rm -rf $HOME/.profile $HOME/.bash_profile $HOME/.bashrc $HOME/.inputrc $HOME/.zshrc $HOME/.vimrc $HOME/.xvimrc $HOME/.gitconfig $HOME/.jshintrc $HOME/.atom
#find "$DOT_DIR/\.*" -d 0 -type f -exec ln -s {} . \;
ln -s "$DOT_DIR"/\.* "$HOME"/
rm -rf "$HOME"/.git
echo "Add your new shells to /etc/shells"
echo "i.e. /usr/local/bin/zsh, /usr/local/bin/bash"
sudo vim /etc/shells