From e58e52f8a3bb319107b23d56a3411365611672eb Mon Sep 17 00:00:00 2001 From: Miheer Vaidya Date: Mon, 9 Sep 2019 15:04:11 -0600 Subject: [PATCH 1/2] Enable loading as zsh custom plugin --- README.rst | 16 ++++++++++++++++ conda-zsh-completion.plugin.zsh | 1 + 2 files changed, 17 insertions(+) create mode 100644 conda-zsh-completion.plugin.zsh diff --git a/README.rst b/README.rst index 1a0cad8..3f0cc45 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,22 @@ conda-zsh-completion -------------------- +Installation +------------ +`oh-my-zsh ` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +```bash +git clone https://github.com/esc/conda-zsh-completion ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions +``` + +add lines in `.zshrc` +``` +plugins=(… conda-zsh-completion) +autoload -U compinit && compinit +``` + +Manual +~~~~~~ Please see the top of the ``_conda`` file for more info. :License: |license| diff --git a/conda-zsh-completion.plugin.zsh b/conda-zsh-completion.plugin.zsh new file mode 100644 index 0000000..29faded --- /dev/null +++ b/conda-zsh-completion.plugin.zsh @@ -0,0 +1 @@ +fpath+="${0:h}" From 9639a409d0aebd590912672264fac5df506ed039 Mon Sep 17 00:00:00 2001 From: miheer vaidya Date: Mon, 9 Sep 2019 15:23:40 -0600 Subject: [PATCH 2/2] Update README.rst --- README.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 3f0cc45..7dd6f58 100644 --- a/README.rst +++ b/README.rst @@ -3,17 +3,21 @@ conda-zsh-completion Installation ------------ -`oh-my-zsh ` +`oh-my-zsh `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -```bash -git clone https://github.com/esc/conda-zsh-completion ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions -``` + +.. code-block:: bash + + git clone https://github.com/esc/conda-zsh-completion ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions + add lines in `.zshrc` -``` -plugins=(… conda-zsh-completion) -autoload -U compinit && compinit -``` + +.. code-block:: zsh + + plugins=(… conda-zsh-completion) + autoload -U compinit && compinit + Manual ~~~~~~