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'tzsh --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_64Minimal 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"
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
Most helpful comment
The script should either add that code to the zshrc file, or inform the user to do so.