forked from jvortmann/dots
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap_mac.sh
executable file
·98 lines (75 loc) · 2.16 KB
/
bootstrap_mac.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
#!/bin/bash
#### Development basics ####
# xcode command line tools
if ! type rvm > /dev/null; then
curl -sSL https://get.rvm.io | bash
fi
if ! type brew > /dev/null; then
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
fi
brew install git
brew tap phinze/cask
brew install brew-cask
#Download vagrant
brew cask install vagrant
# sublime
brew cask install sublime-text
# iterm2
brew cask install iterm2
# intellij
brew cask install intellij-idea
brew install node
brew install tree
brew install ack
brew install bash-completion
brew install ssh-copy-id
brew install wget
brew install selecta
# use solarize colors on iterm2
# set global shortcut for iterm2
# create bash and zsh profiles, where bash -l
# make (alt ->) jump words
# Caps->Control
# F keys as functions
defaults write com.apple.keyboard.fnState -boolean true
defaults write -g ApplePressAndHoldEnabled 0
DOTS_DIR="$HOME/.dots";
if [ ! -d "$DOTS_DIR" ]; then
git clone https://github.com/bauricio/dots $DOTS_DIR
$DOTS_DIR/rake install
fi
VIM_DIR="$HOME/.vim";
if [ ! -d "$VIM_DIR" ]; then
git clone https://github.com/bauricio/vim-files $VIM_DIR
$VIM_DIR/install.sh
fi
OH_MY_ZSH_DIR="$HOME/.oh-my-zsh"
if [ ! -d "$OH_MY_ZSH_DIR" ]; then
git clone https://github.com/bauricio/oh-my-zsh $OH_MY_ZSH_DIR
chsh -s /bin/zsh
fi
#### Productivity ####
# screen hero
brew cask install screenhero
# evernote
brew cask install evernote
# caffeine
brew cask install caffeine
# alfred
brew cask install alfred
# add cask to alfred search scope
brew cask alfred link
# change shortcut (remove spotlight default and replace by alfred)
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:64' > /dev/null 2>&1
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:64:enabled bool false'
defaults write com.alfredapp.Alfred hotKey -int 64
# The Unarchiver
brew cask install the-unarchiver
# Dropbox
brew cask install dropbox
# set dock to hide and minify
# clear dock to have only:
#### Fun ####
brew cask install steam
brew cask install spotify
brew cask install simple-comic