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
1 changed files with 6 additions and 1 deletions

View File

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