From 13c986f650c1f165402b412a8bd2611f0f9f4f26 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 29 Jan 2011 16:27:02 +0200 Subject: BSD's hostname understands only "-s" --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3