Update .config/fish/functions/hack.fish

This commit is contained in:
punkfairie 2024-09-06 18:44:17 -07:00
parent e9e1c105ef
commit 803c210c4d

View file

@ -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]