Pick a GitHub repository with fzf and clone it with ghq.
gh extension install ph0ryn/gh-fzf-getAdd the overlay setting in flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
gh-fzf-get = {
url = "github:ph0ryn/gh-fzf-get";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { gh-fzf-get, ... }: {
nixpkgs.overlays = [
gh-fzf-get.overlays.default
];
};
}Then add extension in gh config
{ pkgs, ... }:
{
programs.gh = {
enable = true;
extensions = [
pkgs.gh-fzf-get
];
};
}gh fzf-get [owner] [ghq get options]If owner is omitted, the authenticated GitHub user is used.
Up to 100 repositories are fetched, ordered by recently updated.
gh fzf-get
gh fzf-get cli
gh fzf-get ph0ryn --updateThe selected repository is cloned via SSH:
ghq get git@github.com:OWNER/REPO.gitMIT