nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.68k stars 74 forks source link

compgen not found for zsh #132

Open Turiok opened 3 years ago

Turiok commented 3 years ago

Hi,

I tried to source .gita-completion.zsh on my Manjaro OS with zsh 5.8. But compgen is not found. And I don't found the compgen package for arch to install it. How to make it works please?

Kind regards, Turiok

eriteric commented 3 years ago

Same here, this is the output when typing gita a and then tab:

gita a_gita_completions:25: command not found: compgen
_gita_completions:34: command not found: compgen
gita
nosarthur commented 3 years ago

Not sure if you can find something in #89 The filer @Steve-Xyh actually implemented the zsh autocompletion in the repo

nosarthur commented 2 years ago

Maybe the zsh users need to turn on some bash compatible mode

see more information here https://stackoverflow.com/questions/3249432/can-a-bash-tab-completion-script-be-used-in-zsh

mhagnumdw commented 1 year ago

For me, autocomplete in zsh doesn't work and doesn't show any errors in the terminal.

edit:

eriteric commented 1 year ago

This is not an issue for me anymore, tab completion works with gita. now using: gita 0.16.4.2 in previous message, was using latest release available at that time.

mhagnumdw commented 12 months ago

For me, autocomplete in zsh doesn't work and doesn't show any errors in the terminal.

edit:

  • gita 0.16.6.4
  • zsh 5.9 (x86_64-redhat-linux-gnu)

For me this continues. I've already tested with the modified version of completion. Does anyone have any tips?

Turiok commented 12 months ago

Hi @mhagnumdw

Did you read the new README chapter completion? Can you describe again your configuration please?

mhagnumdw commented 12 months ago

Did you read the new README chapter completion?

Yes. I tested both zsh options.

Can you describe again your configuration please?

  • gita 0.16.6.4
  • zsh 5.9 (x86_64-redhat-linux-gnu)
nosarthur commented 11 months ago

check out PR #269 its change is in v0.16.6.6

mhagnumdw commented 11 months ago

For me it still doesn't work.

I have this in my ~/.zshrc:

# Load Helm Completion
source <(helm completion zsh)
# Load gita Completion
# source ~/.gita-completion.zsh # downloaded from github
source <(register-python-argcomplete gita -s zsh)

Helm's autocomplete works, Gita's still doesn't work.