-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·117 lines (65 loc) · 2.18 KB
/
setup.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
#!/bin/bash
# Ask for the administrator password upfront
sudo -v
export DOTFILES=`pwd`
if [ -z "`cat ~/.bashrc | grep '.bash_profile'`" ]; then
echo "source ~/.bash_profile;" >> ~/.bashrc;
fi
if [ -z "`cat ~/.bash_profile | grep '/dotfiles'`" ]; then
echo "source `pwd`/.spread" >> ~/.bash_profile;
fi
./symlinks.sh
./daemons.sh
## iterm integration
curl -L https://iterm2.com/misc/install_shell_integration.sh | bash
./brew.sh
# non-brew packages
#sdk
#curl -s get.sdkman.io | bash
#source "$HOME/.sdkman/bin/sdkman-init.sh"
#sdk install grails
#sdk install groovy
# cheatly (cheat improvement)
#gem install cheatly
#sudo gem install jekyll
# lolcommits - https://github.com/mroth/lolcommits
#sudo gem install lolcommits
#sudo gem install lolcat
# tldr (short man)
sudo npm install -g tldr
# iterm tab color
sudo npm install -g iterm2-tab-set
# front-end deps
sudo npm install -g gulp
sudo npm install -g bower
# speed-test
sudo npm install -g speed-test
sudo easy_install Pygments
sudo easy_install pip
# glances (system monitor)
sudo pip install glances
# python + selenium
#sudo pip install pyvirtualdisplay selenium
#howdoi - solutions/snippets on command line
#sudo pip install howdoi
# sshuttle - tunnel through SSH
sudo pip install sshuttle
# powerline status
sudo pip install powerline-status
sudo pip install powerline-gitstatus
#jekyll
cp ./fonts/Inconsolata.otf ~/Library/Fonts
wget https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat -O /usr/local/bin/imgcat
chmod +x /usr/local/bin/imgcat
if [ "$(uname -s)" == "Darwin" ]; then
wget https://bahoom.com/hyperswitch/HyperSwitch.zip
unzip HyperSwitch.zip -d ~/Applications
#redirect everything that's .buildlocal to local
mkdir -pv $(brew --prefix)/etc/ && \
echo 'address=/.buildlocal/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf && \
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons && \
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist && \
sudo mkdir -v /etc/resolver && \
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/buildlocal'
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder
fi