Your SlideShare is downloading. ×
0
ZSH & RVM
Pat Allan             @pat
http://freelancing-gods.com
ZSH
www.zsh.org
Z Shell
Very similar to Bash
Sorry Windows
    Users
Oh My ZSH!
robbyrussell/oh-my-zsh
...or my fork
freelancing-god/oh-my-zsh
g = git status
l = git log
d = git diff
gco = git checkout
gcom = git checkout master
hp = git push heroku master
hc = heroku console
sc = script/console
ss = script/server
gen = script/generate
tm = TextMate...
# In ~/.zshrc

export ZSH=$HOME/.oh-my-zsh
export EDITOR=mate
export ZSH_THEME="pat"

plugins=(git heroku osx rails ruby t...
RVM
rvm.beginrescueend.com
Ruby Version Manager
Built for Bash
Works with ZSH
Install Multiple Rubies
MRI 1.8.7
MRI 1.9.x
JRuby
REE
+ more
Even better:
  Gemsets
... but with TextMate?
⌘R
.rvmrc
rvm use 1.8.7@rails3
TM_RUBY
#!/usr/bin/env zsh
source ~/.rvm/scripts/rvm

if [[ -s "${TM_PROJECT_DIRECTORY}/.rvmrc" ]]
then
   source "${TM_PROJECT_DI...
babushka rvm_ruby
freelancing-god/babushka-deps
Rails 3 and RSpec?
RSpec.tmbundle
rspec/rspec-tmbundle
Questions?
ZSH and RVM
Upcoming SlideShare
Loading in...5
×

ZSH and RVM

5,944

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

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

No notes for slide

Transcript of "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?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×