Zplug: zsh: command not found: zplug

Created on 13 Dec 2019  ยท  8Comments  ยท  Source: zplug/zplug

Describe the bug
I cannot run zplug after having installed it using CURL
it says command not found for zsh

Env (please complete the following information):

  • zplug version: can't
  • zsh --version: zsh 5.7.1 (x86_64-apple-darwin19.0.0)
  • uname -a: Darwin Macbook.local 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64

Minimal zshrc (with less than 30 lines)

Create a minimal reproducing set of configurations for this issue. Please remove all unnecessary parts!

source ~/.zplug/init.zsh
ZSH_THEME="avit"

kinusage

Most helpful comment

The script should either add that code to the zshrc file, or inform the user to do so.

All 8 comments

It lacks zplug load at endfile.

I am getting a similar issue when installing via homebrew on a different OSX.
I still cannot use zplug "out of the box" using curl.

โžœ  ~  brew install zplug
Warning: zplug 2.4.2 is already installed and up-to-date
To reinstall 2.4.2, run `brew reinstall zplug`
โžœ  ~ zplug version                                        
zsh: command not found: zplug
โžœ  ~ zsh --version
zsh 5.7.1 (x86_64-apple-darwin18.2.0)
 โžœ  ~ uname -a
Darwin DGKPW01ZFY13 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64

zplug is a function, not a program.

You need to find where brew put zplugs init.zsh and source it.

My ~/.zshrc contains the following:

if [ -f ${HOME}/.zplug/init.zsh ]; then
    source ${HOME}/.zplug/init.zsh
fi

Obviously not installed via brew though :D

The brew formula page also says the following (formatting mine):

In order to use zplug, please add the following to your .zshrc:

export ZPLUG_HOME=$(brew --prefix)/opt/zplug
source $ZPLUG_HOME/init.zsh

Perhaps this should be added to the README.md as well, such that this information is easier to discover?

I completely missed that there are extra steps to complete the installation.

This solved the issue for me:

My ~/.zshrc contains the following:

if [ -f ${HOME}/.zplug/init.zsh ]; then
    source ${HOME}/.zplug/init.zsh
fi

Looks getting solved.

The script should either add that code to the zshrc file, or inform the user to do so.

This is so ridiculous. WHy is it built this way:

โžœ  ~ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
 โœ”  Checking if your zsh version is newer than 4.1.9 [SUCCEEDED]
 โœ”  Installing zplug to /Users/mentor/.zplug [SUCCEEDED]
 All processes are successfully completed ๐ŸŽ‰
 For more information, see http://zplug.sh ๐ŸŒบ
 Enjoy zplug!
โžœ  ~ zplug "lukechilds/zsh-nvm"
zsh: command not found: zplug

I completely missed that there are extra steps to complete the installation.

This solved the issue for me:

My ~/.zshrc contains the following:

if [ -f ${HOME}/.zplug/init.zsh ]; then
    source ${HOME}/.zplug/init.zsh
fi

this line fixed it for me, zsh 5.3, macOS Mojave

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bootleq picture bootleq  ยท  3Comments

b4b4r07 picture b4b4r07  ยท  7Comments

eru picture eru  ยท  4Comments

DandyDev picture DandyDev  ยท  5Comments

umasoya picture umasoya  ยท  10Comments