oh-my-fish / theme-agnoster

MIT License
96 stars 64 forks source link

use `uname -n` instead of `hostname` #51

Closed sarisia closed 4 years ago

sarisia commented 4 years ago

Some Linux distributions (e.g. Arch Linux) do not have hostname command by default, which is used by get_hostname function.

This PR changes hostname to uname -n. Tested in Ubuntu, Arch Linux and macOS.

We do not use $hostname variable which was introduced in fish 3.0 in order to keep backward compatibility.

sn0cr commented 4 years ago

Thank you