forked from thoughtbot/laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac
61 lines (46 loc) · 2.02 KB
/
mac
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
#!/usr/bin/env bash
echo "Installing Redis, a good key-value database ..."
brew install redis
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing tmux, a good way to save project state and switch between projects ..."
brew install tmux
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
brew install imagemagick
echo "Installing MySQL ..."
brew install mysql
echo "Copying my.cnf locally ..."
cp $HOME/laptop/config_files/my.cnf $HOME/my.cnf
echo "Loading MySQL on startup ..."
cp $HOME/laptop/config_files/com.mysql.mysqld.plist $HOME/Library/LaunchAgents/com.mysql.mysqld.plist
launchctl load $HOME/Library/LaunchAgents/com.mysql.mysqld.plist
echo "Installing beanstalkd ..."
brew install beanstalkd
echo "Loading beanstalkd on startup ..."
cp $HOME/laptop/config_files/com.gtio.beanstalkd.plist $HOME/Library/LaunchAgents/com.gtio.beanstalkd.plist
launchctl load $HOME/Library/LaunchAgents/com.gtio.beanstalkd.plist
echo "Installing memcached ..."
brew install memcached
echo "Loading memcached on startup ..."
cp $HOME/laptop/config_files/com.danga.memcached.plist $HOME/Library/LaunchAgents/com.danga.memcached.plist
launchctl load $HOME/Library/LaunchAgents/com.danga.memcached.plist
echo "Installing rbenv ..."
git clone git://github.com/sstephenson/rbenv.git $HOME/.rbenv
if [[ -f ~/.zshrc ]]; then
echo 'export PATH="$HOME/.rbenv/bin:/usr/local/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
else
echo 'export PATH="$HOME/.rbenv/bin:/usr/local/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
fi
export PATH="$HOME/.rbenv/bin:/usr/local/bin:$PATH"
eval "$(rbenv init -)"
echo "Installing ruby-build ..."
git clone git://github.com/sstephenson/ruby-build.git $HOME/laptop/ruby-build
cd $HOME/laptop/ruby-build
./install.sh
cd $HOME
rm -r $HOME/laptop/ruby-build
bash < <(cat $HOME/laptop/php)
bash < <(cat $HOME/laptop/ruby)
bash < <(cat $HOME/laptop/gtio)