Skip to content

Instantly share code, notes, and snippets.

@BKmetoff
Created March 29, 2023 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BKmetoff/8461ef51628485fee7d49e96d573a87a to your computer and use it in GitHub Desktop.
Save BKmetoff/8461ef51628485fee7d49e96d573a87a to your computer and use it in GitHub Desktop.
CLI git helper - open repo from selected organisation/user
#!/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