mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08: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.
11 lines
352 B
Fish
11 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
|