summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index ce09210..6adf581 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -270,8 +270,11 @@ set_shell_title() {
#then
host=${HOSTNAME}
#host=`hostname --short`
- [[ $upcase_hostname = "on" ]] && host=`echo ${host%$default_host} | tr a-z A-Z`
- #host=`echo ${host} | tr a-z A-Z`
+ if [[ $upcase_hostname = "on" ]]; then
+ host=`echo ${host%$default_host} | tr a-z A-Z`
+ else
+ host=${host%$default_host}
+ fi
host_color=${host}_host_color
host_color=${!host_color}