Update .config/fish/functions/hack.fish
This commit is contained in:
parent
e9e1c105ef
commit
803c210c4d
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
function hack --description "Select a GH repo, [clone it], enter its directory" \
|
function hack --description "Select a GH repo, [clone it], enter its directory" \
|
||||||
--argument-names repo
|
--argument-names repo
|
||||||
if string length -q "$repo"
|
if ! string length -q "$repo"
|
||||||
set -f repos \
|
set -f repos \
|
||||||
$(gh repo list --no-archived --json name,description --jq '.[] | "\(.name) \u001b[1;30m\(.description)\u001b[0m"')
|
$(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]
|
set -f repo $(gum filter --height 10 $repos | string split ' ')[1]
|
||||||
|
|
Loading…
Reference in a new issue