From e31962395f3b90ce12c1d185c9bf2e4671ddc5f0 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 27 Jan 2019 01:19:39 -0800 Subject: [PATCH] Preserve compatibility with fish <2.5 --- fish_greeting.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fish_greeting.fish b/fish_greeting.fish index 3b1ad83..c74f50d 100644 --- a/fish_greeting.fish +++ b/fish_greeting.fish @@ -1,6 +1,10 @@ function fish_greeting -d "What's up, fish?" set_color $fish_color_autosuggestion uname -nmsr - command -q -s uptime; and uptime + + # TODO: `command -q -s` only works on fish 2.5+, so hold off on that for now + command -s uptime >/dev/null + and uptime + set_color normal end