"plugins/vscode:/vscode.git/clone" did not exist on "a6b8bec8ecdb48a059f73e82a1df0bf3387beccc"
Commit f358f614 authored by Nicolas Jeker's avatar Nicolas Jeker
Browse files

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.
parent b8b241f6
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Machine name. # Machine name.
function box_name { function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s [ -f ~/.box-name ] && cat ~/.box-name || hostname
} }
# Directory info. # Directory info.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment