mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
3e115b7a85
I break compatibility with Mac OS X again, that I don't have access to. Result: Stuff break, and I have to fix it, so it will perhaps work. At least, I hope it will work.
10 lines
352 B
Fish
10 lines
352 B
Fish
# Query for USERDOMAIN to shorten waiting times when OS isn't Windows.
|
|
set -q USERDOMAIN
|
|
and switch (uname)
|
|
case 'CYGWIN_*'
|
|
# Cygwin's hostname is broken when computer name contains Unicode
|
|
# characters. This hack "fixes" hostname in Cygwin.
|
|
function hostname --description "Show or set the system's host name"
|
|
echo $USERDOMAIN
|
|
end
|
|
end
|