-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup_dev_osx.sh
executable file
·97 lines (78 loc) · 3.4 KB
/
setup_dev_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
#!/bin/sh
##################################################################################################
# Configuring Git
git config --global color.ui true
git config --global log.decorate full
git config --global help.autocorrect = 1
git config --global alias.st status
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
echo "> What is your name ?"
read line
sleep 5
git config --global user.name "$line"
echo "> What is your email ?"
read line
sleep 5
git config --global user.email "$line"
ssh-keygen -t rsa -C "$line"
cat ~/.ssh/id_rsa.pub | pbcopy
echo "> Your ssh key was just pbcopied"
echo "> Wait 2 sec Github is opening, then paste your key on ssh settings"
sleep 2
open -a "Safari" https://github.com/settings/ssh
##################################################################################################
#########################################################################################
# Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Verify homebrew installation
brew doctor
#########################################################################################
#############################################################################
# Install cask
brew install caskroom/cask/brew-cask
# Install Iterm2
brew cask install iterm2
# Install Google Chrome
brew cask install google-chrome
# alfred
brew cask install alfred
# QuickLook
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package
#############################################################################
##########################################################################################
# Install oy-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
##########################################################################################
##############################################################################
# Installing Ruby
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
source ~/.zshrc
rbenv install 2.2.3
rbenv global 2.2.3
ruby -v
##############################################################################
##################################################################################################
# Setting Up Postgresql
curl -LOk https://github.com/PostgresApp/PostgresApp/releases/download/9.4.4.1/Postgres-9.4.4.1.zip
unzip Postgres-9.4.4.1.zip
mv Postgres.app ~/Applications
echo 'export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin' >> ~/.zshrc
##################################################################################################
##########################
# Installing Rails
gem install rails -v 4.2.4
rbenv rehash
rails -v
##########################
########################################################
# Installing heroku
brew install heroku-toolbelt
echo "Don't forget to add your ssh key to Heroku setting"
########################################################
##############################################
brew install macvim
curl -Lo- https://bit.ly/janus-bootstrap | zsh
##############################################
exit 0