diff options
author | dfalk <danelfalk22@gmail.com> | 2012-02-29 23:13:19 -0500 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2012-07-06 21:12:25 +0300 |
commit | c439a12b77584317fa354ff9df0f151716f49974 (patch) | |
tree | dfec45a538856ad415e5f4c608eb76b18622bd5a | |
parent | Merge pull request #18 from jeanparpaillon/master (diff) | |
download | git-prompt-c439a12b77584317fa354ff9df0f151716f49974.tar.gz git-prompt-c439a12b77584317fa354ff9df0f151716f49974.tar.bz2 git-prompt-c439a12b77584317fa354ff9df0f151716f49974.zip |
Fixing host color bug by replacing invalid bash variable characters with underscores
-rwxr-xr-x | git-prompt.sh | 2 |
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 |