blob: 8caaca7cc1f3ffd4f7f40f997ed5f12604c7f780 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# 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
|