Skip to content
Browse files

Don't use hub for git info in prompt. Speedy++.

  • Loading branch information...
1 parent d8d9ca7 commit e8dd1936a8a50c3d06bd564daab68169faeb2b09 Christopher Peplin committed with holman Oct 6, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 zsh/prompt.zsh
View
8 zsh/prompt.zsh
@@ -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 ""
@@ -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/}"
}
@@ -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 () {

0 comments on commit e8dd193

Please sign in to comment.
Something went wrong with that request. Please try again.