mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:38:27 +08:00
Remove hostname function
This was only a thing in cygwin, and only a workaround because cygwin's hostname was broken in 2013 and our sample prompts called it, which caused errors in fish_config. Our sample prompts no longer call `hostname` at all (they use `prompt_hostname`, which uses the variable), and it's possible cygwin's hostname was fixed in the meantime. Fixes #7669.
This commit is contained in:
parent
409ed7d6d0
commit
dd48fdc970
|
@ -1,10 +0,0 @@
|
|||
# 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
|
Loading…
Reference in New Issue
Block a user