Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compgen not found for zsh #132

Open
Turiok opened this issue Feb 15, 2021 · 10 comments
Open

compgen not found for zsh #132

Turiok opened this issue Feb 15, 2021 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@Turiok
Copy link
Contributor

Turiok commented Feb 15, 2021

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

@nosarthur nosarthur added the help wanted Extra attention is needed label Feb 16, 2021
@eriteric
Copy link

eriteric commented May 12, 2021

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
Copy link
Owner

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

@nosarthur
Copy link
Owner

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
Copy link

mhagnumdw commented Oct 23, 2023

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)

@eriteric
Copy link

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.

Turiok added a commit to Turiok/gita that referenced this issue Nov 1, 2023
Turiok added a commit to Turiok/gita that referenced this issue Nov 2, 2023
Turiok added a commit to Turiok/gita that referenced this issue Nov 2, 2023
Turiok added a commit to Turiok/gita that referenced this issue Nov 3, 2023
Turiok added a commit to Turiok/gita that referenced this issue Nov 6, 2023
Turiok added a commit to Turiok/gita that referenced this issue Nov 8, 2023
nosarthur pushed a commit that referenced this issue Nov 9, 2023
@mhagnumdw
Copy link

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
Copy link
Contributor Author

Turiok commented Nov 13, 2023

Hi @mhagnumdw

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

@mhagnumdw
Copy link

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
Copy link
Owner

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

@mhagnumdw
Copy link

mhagnumdw commented Dec 11, 2023

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.

  • gita 0.16.6.6
  • argcomplete 3.2.1
  • zsh 5.9 (x86_64-redhat-linux-gnu)

@nosarthur nosarthur reopened this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants