Closed Henriquelay closed 2 years ago
That's not guaranteed to exist, either 😬
uname -n
is the portable POSIX way of doing it. Confirm that it works on your machine and I'll switch to that 🙂
Works fine! Lets go with that :)
Should be fixed now!
https://github.com/oh-my-fish/theme-bobthefish/blob/626bd39b002535d69e56adba5b58a1060cfb6d7b/functions/fish_title.fish#L11
hostname
commands are not avaiable on all machines, and not on mine running a Arch distro. I fixed this on my machine by replacinghostname
bycat /etc/hostname
. Works just fine for me. Before the fix, it displays a error on every prompt. I don't know if it's a good solution for the program since it depends oncat
, a GNU program, and will make the program depend on that, just like it currently depends onhostname
.