ZSH and RVM

6,550 views
6,342 views

Published on

A quick introduction to ZSH and RVM, and how to get them playing nicely with TextMate, Rails 3 and RSpec 2 on a Mac.

Note that the shortcuts listed are just in my fork of Oh-My-ZSH, not the original. And these slides are kinda lacking when there's no audio - that may appear later.

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,550
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
33
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

ZSH and RVM

  1. 1. ZSH & RVM Pat Allan @pat http://freelancing-gods.com
  2. 2. ZSH www.zsh.org
  3. 3. Z Shell
  4. 4. Very similar to Bash
  5. 5. Sorry Windows Users
  6. 6. Oh My ZSH! robbyrussell/oh-my-zsh
  7. 7. ...or my fork freelancing-god/oh-my-zsh
  8. 8. g = git status
  9. 9. l = git log
  10. 10. d = git diff
  11. 11. gco = git checkout
  12. 12. gcom = git checkout master
  13. 13. hp = git push heroku master
  14. 14. hc = heroku console
  15. 15. sc = script/console
  16. 16. ss = script/server
  17. 17. gen = script/generate
  18. 18. tm = TextMate...
  19. 19. # In ~/.zshrc export ZSH=$HOME/.oh-my-zsh export EDITOR=mate export ZSH_THEME="pat" plugins=(git heroku osx rails ruby textmate) source $ZSH/oh-my-zsh.sh source ~/.rvm/scripts/rvm rvm use 1.8.7 &> /dev/null
  20. 20. RVM rvm.beginrescueend.com
  21. 21. Ruby Version Manager
  22. 22. Built for Bash
  23. 23. Works with ZSH
  24. 24. Install Multiple Rubies
  25. 25. MRI 1.8.7
  26. 26. MRI 1.9.x
  27. 27. JRuby
  28. 28. REE
  29. 29. + more
  30. 30. Even better: Gemsets
  31. 31. ... but with TextMate?
  32. 32. ⌘R
  33. 33. .rvmrc
  34. 34. rvm use 1.8.7@rails3
  35. 35. TM_RUBY
  36. 36. #!/usr/bin/env zsh source ~/.rvm/scripts/rvm if [[ -s "${TM_PROJECT_DIRECTORY}/.rvmrc" ]] then source "${TM_PROJECT_DIRECTORY}/.rvmrc" fi `which ruby` $*
  37. 37. babushka rvm_ruby freelancing-god/babushka-deps
  38. 38. Rails 3 and RSpec?
  39. 39. RSpec.tmbundle rspec/rspec-tmbundle
  40. 40. Questions?

×