Some more aliases and a fix for autospec

pull/2/head
Bodaniel Jeanes 2009-02-04 11:21:50 +10:00
parent 38c8efbd3a
commit 641dbe404f
2 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,7 @@ module Autotest::Growl
Autotest.add_hook :ran_command do |at|
unless at.results.empty?
output = at.results.last.slice(/(\d+)\s.*examples?,\s(\d+)\s.*failures?/)
output = at.results.last.slice(/(\d+)\s.*(?:examples|assertions)?,\s(\d+)\s.*failures?/)
if output =~ /[1-9]\sfailures?/
growl "Tests", "#{output}", "~/.ruby_fail.png", 2, "-s"
else

7
bashrc
View File

@ -47,10 +47,15 @@ alias systail='tail -f /var/log/system.log'
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
# rails stuff
alias rlog='tail -f -0 ./log/*.log'
alias log='tail -f -0 ./log/*.log'
alias ss='ruby ./script/server'
alias sc='ruby ./script/console'
alias cdm='cap deploy deploy:migrate'
alias model='script/generate model'
alias controller='script/generate controller'
alias migration='script/generate migration'
alias migrate='rake db:migrate'
alias rollback='rake db:rollback'
alias startpg='sudo /Library/StartupItems/PostgreSQL/PostgreSQL start'