use hostname instead of hostname -s

hostname -s is not available on every implementation of hostname, e.g. Cygwin uses hostname from coreutils which doesn't work.
pull/1683/head
Nicolas Jeker 2013-04-02 12:33:06 +03:00
parent b8b241f630
commit f358f61414
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s
[ -f ~/.box-name ] && cat ~/.box-name || hostname
}
# Directory info.