Comments (8)
- What did you do?
Follow the install instructions in _conda
, .i.e. add fpath+=/<...>/conda-zsh-completion
to ~/.zshrc
before initializing oh-my-zsh
- What did you expect?
That conda autocompletion works
- What happend instead?
It didn't 😢 Then I strumbled across this issue which solved my problem. Apparently, I have to run compinit conda
and not just compinit
(as suggested in the _conda
file). Maybe this is obvious to someone who is familiar with zsh
but I just go started so this was a (easily resolvable) hurdle for me
from conda-zsh-completion.
Here is the relevant snippet:
# To use this completion drop it somewhere in you '$fpath', e.g.:
#
# $ git clone $CLONEURL
# $ fpath+=$PWD/conda-zsh-completion
# $ compinit conda
I do realize, that documentation is a bit lacking right now, you can also look at:
from conda-zsh-completion.
I will close this for now, as we are in the progress of getting better docs, please feel free to re-open, if you are still having issues. In this case also list:
- What did you do?
- What did you expect?
- What happend instead?
from conda-zsh-completion.
I ended up in the same situation. With Mac OS switching from bash
to zsh
I'm guessing there will be more users like me.
Adding compinit conda
after source $ZSH/oh-my-zsh.sh
in ~/.zshrc
fixed it.
I also use the git plugin so the section of ~/.zshrc
now looks like this:
plugins=(git conda-zsh-completion)
source $ZSH/oh-my-zsh.sh
compinit conda
If this is the correct approach (someone more experienced with this should answer) I belive the documentation should be updated.
from conda-zsh-completion.
Does the following help: #25
from conda-zsh-completion.
I installed after the branch was merged.
Having some more time this weekend I tried the config from the docs once more. This time it worked. My .zshrc now has these two lines
plugins=(git conda-zsh-completion)
autoload -U compinit && compinit
I tried to track down my original mistake to help others in a similar situation; I couldn't. Whatever newbie mistake I made, it is hard to reproduce.
Thanks the the developers and maintainers for making my life easier.
PS. I haven't tested is if the compinit conda
command just needs to run once. I'm not even sure if that make sense.
from conda-zsh-completion.
@haugstve thanks for the feedback, we appreciate it!
from conda-zsh-completion.
The problem reappeared. It was probably never sorted, but only bypassed by me fiddling around and some how ended up running .zshrc multiple times in the same terminal or something.
Who knows and who cares. This is what I used to solve it: #26
I really appreciate the plugin!
from conda-zsh-completion.
Related Issues (20)
- Error when mistype subcommand HOT 4
- How about a LICENSE file? HOT 2
- Documentation / HowTo? HOT 1
- Completions do not work at all for certain combinations of OS/conda/zsh/OMZ HOT 4
- `autoload -U compinit && compinit` has no effect unless put in the end of the file HOT 9
- Some bugs when completing -h and -V HOT 3
- Inefficient env list calculation HOT 1
- Installation is not working, any debugging tips? HOT 5
- Not working with Prezto HOT 1
- conda activate completion HOT 5
- Doesn't work like "similar" completion systems HOT 8
- Multi-user environments cannot completion HOT 2
- conda create fails on macOS HOT 1
- 'Conda activate' always completes with all environment variables HOT 15
- parse error near `^M' HOT 1
- Clarity for implementing for oh-my-zsh users HOT 4
- Create a tag for v0.10 HOT 4
- Adding custom env directory HOT 1
- Crashes when trying to complete `conda create --clone` HOT 6
- micromamba HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-zsh-completion.