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

Feature request: Autocomplete on env names? #11

Closed
tilusnet opened this issue Sep 7, 2021 · 3 comments
Closed

Feature request: Autocomplete on env names? #11

tilusnet opened this issue Sep 7, 2021 · 3 comments

Comments

@tilusnet
Copy link

tilusnet commented Sep 7, 2021

Hi.

Great initiative!
Would you be able to extend support to existing environment names? E.g.:
conda activate <TAB>

@tartansandal
Copy link
Owner

Hi @tilusnet

Would you be able to extend support to existing environment names? E.g.:
conda activate

That should actually already work. 😄 Note the positional arg after activate is either an "env name" or a "path prefix" so when you hit <tab> you may get local sub-directories as completion options as well as your environment names.

Hope that is working for you, but if you have any problems, please let me know and I'll see if I can help.

@tilusnet
Copy link
Author

tilusnet commented Sep 7, 2021

Haha I based my assumption on your Readme which does not explicitly mention env name completion.
But you're right, it does work. Awesome!

@tilusnet tilusnet closed this as completed Sep 7, 2021
@tartansandal
Copy link
Owner

Hi @tilusnet! Just a heads up that the new conda-bash-completion v1.7 does completion for conda activate more like you would expect: completing for named environments by default, and only completing for paths if the stem looks like a path. :smile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants