Skip to content

Commit

Permalink
BSD's hostname understands only "-s"
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed Jan 29, 2011
1 parent 8d45f1f commit 13c986f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-prompt.sh
Expand Up @@ -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
Expand Down

0 comments on commit 13c986f

Please sign in to comment.