Skip to content

Commit

Permalink
Don't use hub for git info in prompt. Speedy++.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Peplin authored and holman committed Oct 15, 2010
1 parent d8d9ca7 commit e8dd193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zsh/prompt.zsh
Expand Up @@ -3,11 +3,11 @@ autoload colors && colors
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh

git_branch() {
echo $(git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
echo $(/usr/bin/git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}

git_dirty() {
st=$(git status 2>/dev/null | tail -n 1)
st=$(/usr/bin/git status 2>/dev/null | tail -n 1)
if [[ $st == "" ]]
then
echo ""
Expand All @@ -22,7 +22,7 @@ git_dirty() {
}

git_prompt_info () {
ref=$(git symbolic-ref HEAD 2>/dev/null) || return
ref=$(/usr/bin/git symbolic-ref HEAD 2>/dev/null) || return
# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})"
echo "${ref#refs/heads/}"
}
Expand All @@ -38,7 +38,7 @@ project_name_color () {
}

unpushed () {
git cherry -v origin/$(git_branch) 2>/dev/null
/usr/bin/git cherry -v origin/$(git_branch) 2>/dev/null
}

need_push () {
Expand Down

0 comments on commit e8dd193

Please sign in to comment.