From 803c210c4d1d4018b1b752cd0f374db844dec076 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:44:17 -0700 Subject: [PATCH] Update .config/fish/functions/hack.fish --- dot_config/fish/functions/hack.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/fish/functions/hack.fish b/dot_config/fish/functions/hack.fish index 557749a..1b16df6 100644 --- a/dot_config/fish/functions/hack.fish +++ b/dot_config/fish/functions/hack.fish @@ -2,7 +2,7 @@ function hack --description "Select a GH repo, [clone it], enter its directory" \ --argument-names repo - if string length -q "$repo" + if ! string length -q "$repo" set -f repos \ $(gh repo list --no-archived --json name,description --jq '.[] | "\(.name) \u001b[1;30m\(.description)\u001b[0m"') set -f repo $(gum filter --height 10 $repos | string split ' ')[1]