-
Notifications
You must be signed in to change notification settings - Fork 0
/
machine-bootstap.sh
64 lines (51 loc) · 1.79 KB
/
machine-bootstap.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
#!/usr/bin/env bash
xcode-select --install
mkdir ~/workspace
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install zshell (oh-my-zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -i '' 's/ZSH_THEME="robbyrussell"/ZSH_THEME="superjarin"/g' ~/.zshrc
sed -i '' 's/plugins=(git)/plugins=(git z compleat common-aliases)/g' ~/.zshrc; z
# Install and configure rbenv
brew install rbenv
echo 'eval "$(rbenv init -)" # Load rbenv automatically' >> ~/.zshrc
rbenv install 2.4.1
rbenv global 2.4.1
gem install bundler
# tools
brew install nmap #network mapping tool
brew install watch
# Install languages
brew cask install java
brew install node
brew install postgresql; brew services start postgresql
# Install Applications
brew cask install iterm2
brew cask install google-chrome
brew cask install shiftit
brew cask install screenhero
brew install Caskroom/versions/alfred2 && brew cask install alfred2
# Install Editors
brew cask install atom
brew cask install intellij-idea-ce
# brew cask install RubyMine
brew cask install webstorm
# macOS Settings
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 2 # normal minimum is 2 (30 ms)
# Configure Finder
defaults write com.apple.Finder FXPreferredViewStyle Nlsv;killall Finder
# Configure Dock
brew install dockutil
dockutil --remove all
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock orientation -string "right"
defaults write com.apple.dock tilesize -int 20
killall Dock
# Add global gitignore
cp ./.gitignore ~/.gitignore
git config --global core.excludesfile ~/.gitignore
# Global node modules
npm install serverless -g
npm install -g create-react-app