mirror of https://github.com/bjeanes/dotfiles.git
Some more aliases and a fix for autospec
parent
38c8efbd3a
commit
641dbe404f
2
autotest
2
autotest
|
@ -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
7
bashrc
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue