ghf
enhances gh
and glabf
experimentally enhances glab
.
Enhancements are
-
Subcommands gain
fzf
subsubcommand if they havelist
subsubcommand. This helps finding a topic of your interest. The return is the identifier (e.g., repository name), and can be piped for example toghf
orgh
. Note that thefzf
subsubcommand accepts the same arguments aslist
does.ghf repo fzf | ghf repo clone # Clone one of your repositories ghf repo fzf atusy | ghf repo clone # Clone one of atusy's repositores
-
Subcommands with
fzf
subsubcommand runs that subsubcommand by default instead of--help
ingh
. The result is internally piped to view the page on the web by default.# These are equivalent ghf issue ghf issue fzf | ghf issue view --web # Viewer can be web (default), text, id, url, or short_url export _GHF_FZF_VIEWER="url" ghf issue
Requirements:
Add below in your .bashrc
or .zshrc
, or else.
source ghf.bash
Add below in your .zshrc
zinit load atusy/gh-fzf
If your system has bash
, then add gh-fzf/bin
to PATH
# For fish shell
fish_add_path path/to/gh-fzf/bin
alias gh=ghf
alias glab=glabf
would be useful as enhanced commands do not conflict with original commands.