Skip to content

Instantly share code, notes, and snippets.

@gorkunov
Created March 15, 2013 16:37
Show Gist options
  • Save gorkunov/5171198 to your computer and use it in GitHub Desktop.
Save gorkunov/5171198 to your computer and use it in GitHub Desktop.
circleci + github + fish
function circle
set -l project (git config --get remote.origin.url | sed "s/.*:\(.*\).git/\1/")
if test -n $project
set -l git_branch (git symbolic-ref HEAD 2> /dev/null | sed -e 's/refs\/heads\///')
set -l url "https://circleci.com/gh/$project/tree/$git_branch"
open $url
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment