Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed anoying blinking git dirty indicator

Testing backtick with git
  • Loading branch information...
commit 783a17763f337d5763a8427d604b2889f2fb0494 1 parent 98e5deb
@andersonfreitas authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  bash/config
  2. +1 −1  screenrc
View
2  bash/config
@@ -43,7 +43,7 @@ function parse_git_ahead_origin {
[[ $(git log origin/master.. 2> /dev/null | wc -l) != " 0" ]] && printf ">$EYELLOW"
}
function parse_git_dirty {
- [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && printf "$BLINK*$NO_COLOR$EYELLOW"
+ [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && printf "*$NO_COLOR$EYELLOW"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[$(parse_git_ahead_origin)\1$(parse_git_dirty)]/"
View
2  screenrc
@@ -74,7 +74,7 @@ hardstatus alwayslastline
#hardstatus string '%{= M} %H%{= B} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '
#hardstatus string "%?%{gk}%-Lw%?%{mk}%n*%f %t%?(%u)%?%?%{gk}%+Lw%?%{Yk} | %{yk}RPD: %{Bk}%1`"
-#backtick 1 1 1 date
+#backtick 1 1 1 git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[$(parse_git_ahead_origin)\1$(parse_git_dirty)]/"
hardstatus string '%{= dK}%-Lw%{= dW}%50>%n%f* %t%{= dK}%+Lw%< %{= Lw} %1` %-=%l %{9}%s%{-}'
Please sign in to comment.
Something went wrong with that request. Please try again.