fish: Use native hostname variable

$hostname is now defined by default so we don't need to do anything
here. I assume it wasn't always like this since otherwise I wouldn't
have needed to call `hostname` in the first place.
This commit is contained in:
Donovan Glover 2021-05-14 18:58:07 -04:00
parent dd0b64cac4
commit 06bd933fa8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -5,8 +5,6 @@ function fish_prompt
# Use a more informative and non-unicode prompt for ttys
if status --is-login; and test -z "$DISPLAY"
set hostname (hostname)
set_color yellow; echo -n "$USER@$hostname"
set_color normal; echo -n " "
set_color magenta; echo -n "($PWD)"