The fish prompt hook ran the external hostname command to build the OSC 7
working-directory URL, so fish printed an error at every prompt where that
command is unavailable. It now uses fish's built-in \$hostname variable.
Closes#4046
Co-authored-by: cubelitblade <135247075+cubelitblade@users.noreply.github.com>