mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
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:
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
Block a user