forked from thoughtbot/laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages
More file actions
45 lines (31 loc) · 1.77 KB
/
Copy pathpackages
File metadata and controls
45 lines (31 loc) · 1.77 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
fancy_echo "Installing Postgres, a good open source relational database ..."
brew_install_or_upgrade 'postgres' '--no-python'
fancy_echo "Installing Redis, a good key-value database ..."
brew_install_or_upgrade 'redis'
fancy_echo "Installing The Silver Searcher (better than ack or grep) to search the contents of files ..."
brew_install_or_upgrade 'the_silver_searcher'
fancy_echo "Installing vim from Homebrew to get the latest version ..."
brew_install_or_upgrade 'vim'
fancy_echo "Installing ctags, to index files for vim tab completion of methods, classes, variables ..."
brew_install_or_upgrade 'ctags'
fancy_echo "Installing tmux, to save project state and switch between projects ..."
brew_install_or_upgrade 'tmux'
fancy_echo "Installing reattach-to-user-namespace, for copy-paste and RubyMotion compatibility with tmux ..."
brew_install_or_upgrade 'reattach-to-user-namespace'
fancy_echo "Installing ImageMagick, to crop and resize images ..."
brew_install_or_upgrade 'imagemagick'
fancy_echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
brew_install_or_upgrade 'qt'
fancy_echo "Installing watch, to execute a program periodically and show the output ..."
brew_install_or_upgrade 'watch'
node_version="0.10"
fancy_echo "Installing NVM, Node.js, and NPM, for running apps and installing JavaScript packages ..."
brew_install_or_upgrade 'nvm'
if ! grep -qs 'source $(brew --prefix nvm)/nvm.sh' ~/.zshrc; then
printf 'export PATH="$PATH:/usr/local/lib/node_modules"\n' >> ~/.zshrc
printf 'source $(brew --prefix nvm)/nvm.sh\n' >> ~/.zshrc
fi
source $(brew --prefix nvm)/nvm.sh
nvm install "$node_version"
fancy_echo "Setting $node_version as the global default nodejs..."
nvm alias default "$node_version"