summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
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