This repository contains glue code for finding repositories on GitHub that you or your organisation owns. In short, it does the following:
- Downloads metadata of all the repositories on GitHub associated with your account and saves a subset of the properties into ~/repos.json
- Provides a way of searching that local file to quickly find a repo for cloning or opening the associated web page.
- BASH
- GitHub CLI
- fzf
- jq
- bat
Even though this is written using 🐚 zx, that's not a direct dependency. It can be installed either globally or as a part of npm install in this repo.
npm install- Add alias/function for invoking the npm scripts in this repo. I have the following in my
~/.zshrc:
repo () {
npm run search --prefix ~/kod/personligt/search-repo "$(pwd)"
}
o () {
npm run open --prefix ~/kod/personligt/search-repo "${PWD##*/}" 1> /dev/null
}
alias refresh-repo="npm run refresh --prefix ~/kod/personligt/search-repo"
There are two commands to run, one that fetches the repos' metadata and one that does the search. Having the aliases above loaded:
$ refresh-repo
$ repo
$ o

