summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Howarth <clint.howarth@gmail.com>2011-05-17 09:54:38 +0800
committerLeonid Volnitsky <leonid@volnitsky.com>2011-05-17 13:30:34 +0800
commitc8e5b8273a0d63b4c2450743e460cf51410445fb (patch)
tree448c7c83aa82fd1deead8cd80995af58b59fb764
parentadd short hostname option (diff)
downloadgit-prompt-c8e5b8273a0d63b4c2450743e460cf51410445fb.tar.gz
git-prompt-c8e5b8273a0d63b4c2450743e460cf51410445fb.tar.bz2
git-prompt-c8e5b8273a0d63b4c2450743e460cf51410445fb.zip
short hostname cleanup
-rwxr-xr-xgit-prompt.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 7ac5c3d..837fc81 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -63,7 +63,7 @@
max_file_list_length=${max_file_list_length:-100}
short_hostname=${short_hostname:-off}
- upcase_hostname=${upcase_hostname:-on}
+ upcase_hostname=${upcase_hostname:-on}
count_only=${count_only:-off}
rawhex_len=${rawhex_len:-5}
@@ -298,9 +298,9 @@ set_shell_label() {
#then
host=${HOSTNAME}
- if [[ $short_hostname = "on" ]]; then
- host=`hostname -s`
- fi
+ if [[ $short_hostname = "on" ]]; then
+ host=`hostname -s`
+ fi
host=${host#$default_host}
uphost=`echo ${host} | tr a-z A-Z`
if [[ $upcase_hostname = "on" ]]; then