Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Forked from powellnathanj/gist:346482
Created March 28, 2010 18:44
Show Gist options
  • Save lmarburger/346950 to your computer and use it in GitHub Desktop.
Save lmarburger/346950 to your computer and use it in GitHub Desktop.
larry(){
history | sort -r | while read i;do if [[ "$i" =~ "ruby" || "$i" =~ "cucumber" ]];then echo $(echo $i | sed 's/^[0-9]* //') | sh ;exit;fi;done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment