From c439a12b77584317fa354ff9df0f151716f49974 Mon Sep 17 00:00:00 2001 From: dfalk Date: Wed, 29 Feb 2012 23:13:19 -0500 Subject: Fixing host color bug by replacing invalid bash variable characters with underscores --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-prompt.sh b/git-prompt.sh index c908c62..cac1897 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -306,7 +306,7 @@ set_shell_label() { fi fi host=${host#$default_host} - uphost=`echo ${host} | tr a-z A-Z` + uphost=`echo ${host} | tr a-z-. A-Z_` if [[ $upcase_hostname = "on" ]]; then host=${uphost} fi -- cgit v1.2.3