-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·90 lines (76 loc) · 2.95 KB
/
bootstrap.sh
File metadata and controls
executable file
·90 lines (76 loc) · 2.95 KB
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
#!/usr/bin/env bash
TERM="xterm-color"
RED="\033[4;31m"
GREEN="\033[4;32m"
YELLOW="\033[4;33m"
BLUE="\033[4;34m"
RESETCOLOR="\033[0m"
echo "Do you wish to execute the bootstrap script and install a whole lot of things? (You should have changed the current directory to the directory of this file)"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit;;
esac
done
echo -e "${BLUE}Setting up Bash and Git Config${RESETCOLOR}"
cp .bash_profile ~/.bash_profile
cp .bashrc ~/.bashrc
cp .gitconfig ~/.gitconfig
cp .vimrc ~/.vimrc
echo -e "${BLUE}Installing Ruby with RVM${RESETCOLOR}"
\curl -sSL https://get.rvm.io | bash -s stable --ruby=1.9.3
echo -e "${BLUE}Installing Ruby Gems{RESETCOLOR}"
gem install cocoapods rails sinatra
echo -e "${BLUE}Installing Caskroom{RESETCOLOR}"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
echo -e "${BLUE}Installing couple of base homebrew packages${RESETCOLOR}"
brew install wget git gcutil ctags python mysql
brew install homebrew/php/composer
brew install php70
brew install php71
brew install php70-mcrypt
brew install php71-mcrypt
brew install --HEAD homebrew/php/php70-memcached
brew install memcached
brew install php70-timecop
brew install php70-intl
brew install php70-gmp
brew install php71-timecop
brew install php71-intl
brew install php71-gmp
echo -e "${BLUE}Installing some handy tools ${RESETCOLOR}"
brew install brew-php-switcher
echo -e "${BLUE}Installing homebrew cask${RESETCOLOR}"
brew tap phinze/cask
brew install brew-cask
echo -e "${BLUE}Installing basic applications${RESETCOLOR}"
brew cask install google-chrome
brew cask install firefox
brew cask install spotify
brew cask install dropbox
brew cask install onepassword
brew cask install vlc
brew cask install slack
brew cask install adobe-creative-cloud
# Plugins/utilities
brew cask install the-unarchiver
# For development
brew cask install phpstorm
brew cask install crashlytics
brew cask install sublime-text
brew cask install flow
brew cask install virtualbox
brew cask install vagrant
brew cask install sequel-pro
brew cask install filezilla
# For hardware
brew cask install logitech-control-center
brew cask install logitech-unifying
brew cask install logitech-options
echo -e "${BLUE}Setting up sublime${RESETCOLOR}"
ln -sf ~/Applications/Sublime\ Text\ 2.app/ ~/bin/subl
wget -O ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Preferences.sublime-settings https://raw.githubusercontent.com/xanderpeuscher/dotfiles/master/sublime/Preferences.sublime-settings
git clone https://github.com/daylerees/colour-schemes.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/daylerees\ -\ themes
echo -e "${BLUE}Setting up Git tab completion${RESETCOLOR}"
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
echo -e "${GREEN}Script done${RESETCOLOR}"