From 5d0c988f710da7e64015c7e685fe99a8e6b0e4f7 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Thu, 10 Jan 2013 10:25:18 -0600 Subject: [PATCH] Sprintly alias --- zsh/aliases.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 378071a..5137776 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -149,3 +149,5 @@ alias rs='rspec spec' # Sprintly - https://github.com/nextbigsoundinc/Sprintly-GitHub alias sp='sprintly' +# spb = sprintly branch - create a branch automatically based on the bug you're working on +alias spb="git checkout -b \`sp | tail -2 | grep '#' | sed 's/^ //' | sed 's/[^A-Za-z0-9 ]//g' | sed 's/ /-/g' | cut -d"-" -f1,2,3,4,5\`"