From f319f3acc1d9d207f537e868fbad27f5652fcc25 Mon Sep 17 00:00:00 2001 From: oGre Date: Mon, 28 Sep 2015 21:29:39 +0200 Subject: [PATCH] Added break in loop after we find the current theme --- gitprompt.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gitprompt.sh b/gitprompt.sh index 99c2d21..b106db9 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -53,6 +53,7 @@ function get_theme() { local basename=${themefile##*/} if [[ "${basename%.bgptheme}" = "${GIT_PROMPT_THEME}" ]]; then theme=$GIT_PROMPT_THEME + break fi done