Code Monkey home page Code Monkey logo

Comments (8)

joleroi avatar joleroi commented on July 17, 2024 1
  • 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.

esc avatar esc commented on July 17, 2024

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:

#7 and #4 for more info

from conda-zsh-completion.

esc avatar esc commented on July 17, 2024

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.

haugstve avatar haugstve commented on July 17, 2024

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.

esc avatar esc commented on July 17, 2024

Does the following help: #25

from conda-zsh-completion.

haugstve avatar haugstve commented on July 17, 2024

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.

esc avatar esc commented on July 17, 2024

@haugstve thanks for the feedback, we appreciate it!

from conda-zsh-completion.

haugstve avatar haugstve commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.