From c6cfb2102f415cedc4910f0dddedad9516e3580a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 7 Mar 2008 00:28:46 +0100 Subject: =?utf-8?q?-=20pas=20de=20branche=20GIT=20dans=20les=20dossiers=20non=20g=C3=A9r=C3=A9s=20!! =20-=20d=C3=A9claration=20de=20DATE=3D=20pour=20le=20prompt=20dans=20le=20bon=20bloc..?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.5.4.1" This is a multi-part message in MIME format. --------------1.5.4.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- 01_Functions.zsh | 2 ++ 1 file changed, 2 insertions(+) (limited to '01_Functions.zsh') diff --git a/01_Functions.zsh b/01_Functions.zsh index b2a9e2d..82bde17 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -47,6 +47,8 @@ get_git_branch () { local my_git_branch + [ "$(git-ls-files . | head -n 1)" == "" ] && return + # Get current working GIT branch my_git_branch="$(git-branch 2>&- | grep -E '^\* ' | cut -c3-)" -- cgit v1.2.3