Permalink
Browse files

fixed git prompt correctly

  • Loading branch information...
danielpuglisi committed Jun 26, 2012
1 parent a27b208 commit 9498060853be3f7915bc39af51151c0892660615
Showing with 4 additions and 4 deletions.
  1. +4 −4 zsh/prompt.zsh
View
@@ -3,11 +3,11 @@ autoload colors && colors
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh
git_branch() {
- echo $(/usr/bin/env git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
+ echo $(/usr/local/bin/git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}
git_dirty() {
- st=$(/usr/bin/git status 2>/dev/null | tail -n 1)
+ st=$(/usr/local/bin/git status 2>/dev/null | tail -n 1)
if [[ $st == "" ]]
then
echo ""
@@ -22,7 +22,7 @@ git_dirty() {
}
git_prompt_info () {
- ref=$(/usr/bin/git symbolic-ref HEAD 2>/dev/null) || return
+ ref=$(/usr/local/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 () {
- /usr/bin/git cherry -v origin/$(git_branch) 2>/dev/null
+ /usr/local/bin/git cherry -v origin/$(git_branch) 2>/dev/null
}
need_push () {

0 comments on commit 9498060

Please sign in to comment.