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

Completion in git bash for Windows: _init_completion: command not found #1513

Open
brigitops opened this issue Feb 23, 2024 · 1 comment
Open
Labels
area: completions Changes related to shell completions and scripts.

Comments

@brigitops
Copy link

brigitops commented Feb 23, 2024

This relates to issue #862, where a user was getting "_init_completion: command" due to updates to the bash completion script.

It was closed because the issue could be resolved by updating bash completion on Mac OSX. However, on Windows, with even the latest Git Bash for Windows (released in November -- see https://github.com/git-for-windows/git/releases/tag/v2.43.0.windows.1), I get the same issue. I also get this through the terminal in Intellij (which I also keep up-to-date).

I've searched for ways to install https://github.com/scop/bash-completion for Windows to update bash-completion itself, no luck.

Perhaps we can restore greater compatibility in the bash completion script without loss of functionality/performance?

  • Task version: 3.34.1
  • Operating system: Windows 11
  • Experiments enabled: no
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Feb 23, 2024
@pd93 pd93 added type: bug Something not working as intended. area: completions Changes related to shell completions and scripts. and removed state: needs triage Waiting to be triaged by a maintainer. labels Mar 4, 2024
@heksesang
Copy link

You can solve this issue by downloading the latest completion script and compat script and source them in ~/.bashrc:

# Enable latest bash-completion
source ~/bash_completion
source ~/000_bash_completion_compat.bash

# Enable completions
source ~/task.bash

At least on my setup, I get working completions for task in Git Bash for Windows.

@pd93 pd93 removed the type: bug Something not working as intended. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: completions Changes related to shell completions and scripts.
Projects
None yet
Development

No branches or pull requests

4 participants