fish_greeting.fish: Make existance of uptime command optional (#189)

The `uptime` command does not exist in some environments, such as MSYS2,
so execute the command only if it exists.
This commit is contained in:
Petar Kirov 2019-01-23 04:22:17 +02:00 committed by Justin Hileman
parent b13f022708
commit c148b97f5c

View File

@ -1,6 +1,6 @@
function fish_greeting -d "What's up, fish?"
set_color $fish_color_autosuggestion
uname -nmsr
uptime
command -q -s uptime; and uptime
set_color normal
end