Created
March 29, 2023 09:10
-
-
Save BKmetoff/8461ef51628485fee7d49e96d573a87a to your computer and use it in GitHub Desktop.
CLI git helper - open repo from selected organisation/user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fuzz="fzf --height=40% --no-color --cycle --margin=5% --padding=1 --no-info" | |
orgs=`echo "<list of orgs separated by space>" | tr ' ' '\n'` | |
selected_org=`printf "$orgs" | $fuzz` | |
selected_repo=`gh repo list $selected_org --no-archived -L 100| $fuzz | awk '{print $1}'` | |
open "https://github.com/$selected_repo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment