diff options
author | Niklas Hofer <niklas+dev@lanpartei.de> | 2009-05-28 01:47:19 +0200 |
---|---|---|
committer | Niklas Hofer <niklas+dev@lanpartei.de> | 2009-05-28 01:47:19 +0200 |
commit | b079748b551901cfc2abb1e8de4f81584a33693b (patch) | |
tree | d6f2853e2969653bca2a8c4a2c59fefcd24769d8 /git-prompt.sh | |
parent | can turn truncate_pwd="on" (diff) | |
download | git-prompt-b079748b551901cfc2abb1e8de4f81584a33693b.tar.gz git-prompt-b079748b551901cfc2abb1e8de4f81584a33693b.tar.bz2 git-prompt-b079748b551901cfc2abb1e8de4f81584a33693b.zip |
can turn hostname upcasing off
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-x | git-prompt.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |