Skip to content

Instantly share code, notes, and snippets.

View jjcall's full-sized avatar
🎯
Focusing

Jason Calleiro jjcall

🎯
Focusing
View GitHub Profile
git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null)
if [[ -n $ref ]]; then
echo "[%{$fg_bold[green]%}${ref#refs/heads/}%{$reset_color%}]"
fi
}
# makes color constants available
autoload -U colors
colors
@jjcall
jjcall / env.rb
Created September 2, 2009 21:42 — forked from tpope/env.rb
Tells webrat to use selenium on specific scenarios
# Enable Webrat's Selenium mode if one or more scenarios is tagged @selenium
Webrat.configure do |config|
config.mode = :rails
ObjectSpace.each_object(Cucumber::Ast::Features) do |features|
config.mode = :selenium if features.tag_count('selenium').nonzero?
end
end