BSD
This commit is contained in:
parent
afed5fa6bb
commit
286dc1eb38
|
@ -1,7 +1,12 @@
|
||||||
set MAX_PATH_PIECE_CHARS 3
|
set MAX_PATH_PIECE_CHARS 3
|
||||||
|
|
||||||
function get_hostname
|
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
|
end
|
||||||
|
|
||||||
function fish_greeting
|
function fish_greeting
|
||||||
|
|
Reference in a new issue