Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 38c2ff8e3e
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.393 kb
#!/usr/bin/env zsh
if [[ -x `which git` ]]; then
function __prompt_git()
{
local git_dir ref br top;
git_dir=$(git rev-parse --git-dir 2> /dev/null) || return
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
br=${ref#refs/heads/}
top=$(cat $git_dir/patches/$br/current 2>/dev/null) \
&& top="/$top"
echo "[$br$top]"
}
fi
Jump to Line
Something went wrong with that request. Please try again.