summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git-prompt.conf4
-rwxr-xr-xgit-prompt.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/git-prompt.conf b/git-prompt.conf
index f4dea44..783a5b3 100644
--- a/git-prompt.conf
+++ b/git-prompt.conf
@@ -35,6 +35,10 @@
# max_pwd_length=30
# min_chars_per_pwd=1
+########################################################### ETC
+
+# upcase_hostname=on # =off
+
########################################################### COLOR
### directory, exit code, root color
diff --git a/git-prompt.sh b/git-prompt.sh
index 070c483..094424c 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -49,6 +49,7 @@
max_pwd_length=${max_pwd_length:-30}
min_chars_per_pwd=${min_chars_per_pwd:-1}
+ upcase_hostname=${upcase_hostname:-on}
##################################################################### post config
@@ -224,7 +225,7 @@ set_shell_title() {
#then
host=${HOSTNAME}
#host=`hostname --short`
- host=`echo ${host%$default_host} | tr a-z A-Z`
+ [[ $upcase_hostname = "on" ]] && host=`echo ${host%$default_host} | tr a-z A-Z`
#host=`echo ${host} | tr a-z A-Z`
host_color=${host}_host_color