From 716227185ba068688e62d379918ccf0812f1a186 Mon Sep 17 00:00:00 2001 From: Vladyslav Dukhin <15850680+primeare@users.noreply.github.com> Date: Mon, 29 May 2023 20:42:24 +0300 Subject: [PATCH] fix: use existing variables --- .config/fish/functions/fish_greeting.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/functions/fish_greeting.fish b/.config/fish/functions/fish_greeting.fish index b4aea1d..25cd76b 100755 --- a/.config/fish/functions/fish_greeting.fish +++ b/.config/fish/functions/fish_greeting.fish @@ -7,7 +7,7 @@ function fish_greeting echo Good morning, $USER! else if test $current_hour -ge 12 -a $current_hour -lt 18 echo Good afternoon, $USER! - else if test $current_hour -ge 18 -a $hour -lt 22 + else if test $current_hour -ge 18 -a $current_hour -lt 22 echo Good evening, $USER! else echo Good night, $USER!