conda-incubator / conda-zsh-completion

zsh completion for conda
Do What The F*ck You Want To Public License
363 stars 65 forks source link

Clarity for implementing for oh-my-zsh users #44

Open jesshart opened 2 years ago

jesshart commented 2 years ago

https://github.com/conda-incubator/conda-zsh-completion/blob/382d840f7ad053b3b2ccf0b1f52b26bdabaf66b3/_conda#L30

It may be my thick skull, but I found this bit confusing. For clarity, if you are using oh-my-zsh then your implementation (assuming your oh-my-zsh is blank slate) should look like this:

# ~/.zshrc

# Add the plug in next to git.
plugins=(git conda-zsh-completion)

# Don't change this line.
source $ZSH/oh-my-zsh.sh

# Auto load after sourcing oh-my-zsh.sh.
autoload -U compinit && compinit
esc commented 2 years ago

@jesshart pull-requests welcome, if you feel the documentation could be improved, please do submit one.

jesshart commented 2 years ago

@esc do you think an edit to the conda-zsh-completion/_conda is preferred or am I ok to create a README.md with details there?

esc commented 2 years ago

@esc do you think an edit to the conda-zsh-completion/_conda is preferred or am I ok to create a README.md with details there?

An edit of _conda is preferred.

esc commented 6 months ago

@jesshart any updates here?