From dd48fdc97059ccd992144cfe195f8b1ab9c87203 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 31 Jan 2021 08:31:11 +0100 Subject: [PATCH] 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. --- share/functions/hostname.fish | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 share/functions/hostname.fish diff --git a/share/functions/hostname.fish b/share/functions/hostname.fish deleted file mode 100644 index e45d984de..000000000 --- a/share/functions/hostname.fish +++ /dev/null @@ -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