浏览代码

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.
Nicolas Jeker 12 年之前
父节点
当前提交
f358f61414
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/ys.zsh-theme

+ 1 - 1
themes/ys.zsh-theme

@@ -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.