Skip to content

ph0ryn/gh-fzf-get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-fzf-get

Pick a GitHub repository with fzf and clone it with ghq.

image

Installation

Using gh

gh extension install ph0ryn/gh-fzf-get

Using nix

Add 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
    ];
  };
}

Usage

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 --update

The selected repository is cloned via SSH:

ghq get git@github.com:OWNER/REPO.git

Requirements

License

MIT

About

Pick a GitHub repository with fzf and clone it with ghq.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors