summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-01-29 16:27:02 +0200
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-01-29 16:27:02 +0200
commit13c986f650c1f165402b412a8bd2611f0f9f4f26 (patch)
tree83990442015f16f7825c7d21a260df37fa262149
parentremoved bash completion for git-prompt (diff)
downloadgit-prompt-13c986f650c1f165402b412a8bd2611f0f9f4f26.tar.gz
git-prompt-13c986f650c1f165402b412a8bd2611f0f9f4f26.tar.bz2
git-prompt-13c986f650c1f165402b412a8bd2611f0f9f4f26.zip
BSD's hostname understands only "-s"
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 021000f..341182b 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -284,7 +284,7 @@ set_shell_label() {
#then
host=${HOSTNAME}
- #host=`hostname --short`
+ #host=`hostname -s`
host=${host#$default_host}
uphost=`echo ${host} | tr a-z A-Z`
if [[ $upcase_hostname = "on" ]]; then