A gh extension to clone GitHub repositories using fzf and ghq.
gh extension install kawarimidoll/gh-q
gh extension list
gh extension upgrade kawarimidoll/gh-q
Fuzzy find your repo by fzf and clone it by ghq:
gh q
To clone other user's repo, pass username:
gh q kawarimidoll
Add the input to your flake.nix:
{
inputs = {
gh-q = {
url = "github:kawarimidoll/gh-q";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}Then add it to programs.gh.extensions:
{ inputs, pkgs, ... }:
{
programs.gh = {
enable = true;
extensions = [
inputs.gh-q.packages.${pkgs.stdenv.hostPlatform.system}.default
];
};
}This extension is strongly inspired by hashue/gh-fuzzyclone.