Install gh for zsh/prezto
kopiczko opened this issue · 2 comments
kopiczko commented
Hi, I'm using https://github.com/sorin-ionescu/prezto, oh-my-zsh alternative. Is there a way to integrate gh not necessarily with prezto but zsh directly? I know I can use gh.bash, but I'd like to have completion enabled.
jdx commented
I have no idea, I'm not a zsh user.
glor commented
You can use the bash scripts. Zsh (at least newer versions) supports bash autocomplete.
It works with plain zsh so it should work with prezto. But you need to have compinit loaded first, then you can do:
# bash completion and gh
autoload bashcompinit
bashcompinit
source ~/src/github.com/dickeyxxx/gh/bash/gh.bash
source ~/src/github.com/dickeyxxx/gh/completions/gh.bash