Upload
freelancinggod
View
5.930
Download
5
Tags:
Embed Size (px)
DESCRIPTION
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.
Citation preview
ZSH & RVMPat Allan @pathttp://freelancing-gods.com
Z Shell
Very similar to Bash
Sorry Windows Users
Oh My ZSH!robbyrussell/oh-my-zsh
...or my forkfreelancing-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-zshexport EDITOR=mateexport ZSH_THEME="pat"
plugins=(git heroku osx rails ruby textmate)
source $ZSH/oh-my-zsh.sh
source ~/.rvm/scripts/rvmrvm use 1.8.7 &> /dev/null
RVMrvm.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 zshsource ~/.rvm/scripts/rvm
if [[ -s "${TM_PROJECT_DIRECTORY}/.rvmrc" ]]then source "${TM_PROJECT_DIRECTORY}/.rvmrc"fi
`which ruby` $*
freelancing-god/babushka-deps
babushka rvm_ruby
Rails 3 and RSpec?
RSpec.tmbundlerspec/rspec-tmbundle
Questions?