ghf enhances gh and glabf experimentally enhances glab.
Enhancements are
-
Subcommands gain
fzfsubsubcommand if they havelistsubsubcommand. This helps finding a topic of your interest. The return is the identifier (e.g., repository name), and can be piped for example toghforgh. Note that thefzfsubsubcommand accepts the same arguments aslistdoes.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
fzfsubsubcommand runs that subsubcommand by default instead of--helpingh. 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/binalias gh=ghf
alias glab=glabfwould be useful as enhanced commands do not conflict with original commands.
