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.pull/171/head
parent
b13f022708
commit
c148b97f5c
@ -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
|
||||
|
Loading…
Reference in new issue