mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03: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:
@@ -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
|
||||
Reference in New Issue
Block a user