This commit is contained in:
Daniel Flanagan 2023-07-10 22:22:40 -05:00
parent afed5fa6bb
commit 286dc1eb38
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -1,7 +1,12 @@
set MAX_PATH_PIECE_CHARS 3 set MAX_PATH_PIECE_CHARS 3
function get_hostname function get_hostname
if test (uname) = Linux || test (uname) = Darwin
has_command hostname && hostname --short || cat /etc/hostname has_command hostname && hostname --short || cat /etc/hostname
else
# assume bsd
hostname | head -n 1
end
end end
function fish_greeting function fish_greeting