Your SlideShare is downloading. ×
ZSH and RVM
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

ZSH and RVM

5,881
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. …

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
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,881
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
31
Comments
0
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ZSH & RVM Pat Allan @pat http://freelancing-gods.com
  • 2. ZSH www.zsh.org
  • 3. Z Shell
  • 4. Very similar to Bash
  • 5. Sorry Windows Users
  • 6. Oh My ZSH! robbyrussell/oh-my-zsh
  • 7. ...or my fork freelancing-god/oh-my-zsh
  • 8. g = git status
  • 9. l = git log
  • 10. d = git diff
  • 11. gco = git checkout
  • 12. gcom = git checkout master
  • 13. hp = git push heroku master
  • 14. hc = heroku console
  • 15. sc = script/console
  • 16. ss = script/server
  • 17. gen = script/generate
  • 18. tm = TextMate...
  • 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. RVM rvm.beginrescueend.com
  • 21. Ruby Version Manager
  • 22. Built for Bash
  • 23. Works with ZSH
  • 24. Install Multiple Rubies
  • 25. MRI 1.8.7
  • 26. MRI 1.9.x
  • 27. JRuby
  • 28. REE
  • 29. + more
  • 30. Even better: Gemsets
  • 31. ... but with TextMate?
  • 32. ⌘R
  • 33. .rvmrc
  • 34. rvm use 1.8.7@rails3
  • 35. TM_RUBY
  • 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. babushka rvm_ruby freelancing-god/babushka-deps
  • 38. Rails 3 and RSpec?
  • 39. RSpec.tmbundle rspec/rspec-tmbundle
  • 40. Questions?