From 77fe95139d7fe55498afa2398d3a72d903fea3d2 Mon Sep 17 00:00:00 2001 From: Juhasz Peter Date: Thu, 9 Jan 2014 12:30:55 +0100 Subject: [PATCH] -Fix: recent refactoring broke mc special case, apply bandaid --- git-prompt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git-prompt.sh b/git-prompt.sh index d36d6a1..99607f1 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -577,12 +577,15 @@ _gp_set_who_where() { else PS1="\w$prompt_char " fi - return 0 + return 1 fi } _gp_set_who_where +# exit if in mc (see above) +[[ $? -ne 0 ]] && return 1 + create_battery_indicator () { # if not a laptop: : # if laptop on AC, not charging: ⚡