From 4a16c26e939d8e5df11bed275f3a19ed3556d591 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 14 Sep 2023 19:38:11 +0300 Subject: [PATCH] fish: fix random fishez --- cli/.config/fish/functions/prompt.bang.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/.config/fish/functions/prompt.bang.fish b/cli/.config/fish/functions/prompt.bang.fish index 9fa53b0..8108b25 100644 --- a/cli/.config/fish/functions/prompt.bang.fish +++ b/cli/.config/fish/functions/prompt.bang.fish @@ -1,6 +1,6 @@ function prompt.bang if ! string match -eq linux $TERM - prompt.add \n$fishes[(random 1 3)]\ + prompt.add \n$fishes[(random 1 (count $fishes))]\ else prompt.add \n\#\ brred end