Created
August 16, 2010 21:19
-
-
Save mgarriss/527763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cuc=script/cucumber | |
# autocompletion for ruby_test | |
# works with tu/tf/ti aliases | |
# see also ~/bin/ruby_test.rb | |
_ruby_tests() { | |
if [[ -n $words[2] ]]; then | |
compadd `ruby_test -l ${words[2]}` | |
fi | |
} | |
compdef _ruby_tests ruby_test | |
alias tu="ruby_test unit" | |
alias tf="ruby_test functional" | |
alias ti="ruby_test integration" | |
# autocompletion for ruby_spec | |
# works with spm/spv/spc aliases | |
# see also ~/bin/ruby_spec.rb | |
_ruby_specs() { | |
if [[ -n $words[2] ]]; then | |
compadd `ruby_spec -l ${words[2]}` | |
fi | |
} | |
compdef _ruby_specs ruby_spec | |
alias spm="ruby_spec models" | |
alias spv="ruby_spec views" | |
alias spc="ruby_spec controllers" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment