From cae95416a2acdda00eeee8fda895a94f253c3f7c Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Mon, 27 Jan 2014 18:15:41 +0400 Subject: [PATCH] toujours afficher la branche --- lib/profile.d/bash_prompt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/profile.d/bash_prompt b/lib/profile.d/bash_prompt index dbfd0c8..aced07c 100644 --- a/lib/profile.d/bash_prompt +++ b/lib/profile.d/bash_prompt @@ -40,10 +40,8 @@ if [ -n "$UTOOLS" ]; then else flag="git" fi - if [ "$UTOOLS" == "f" ]; then - branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" - [ "$branch" != "master" ] && flag="$flag:$branch" - fi + branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" + [ "$branch" != "master" ] && flag="$flag:$branch" if [ -n "$NOPUSH" ]; then flag="$flag,nopush" fi