BSD
This commit is contained in:
parent
afed5fa6bb
commit
286dc1eb38
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue