What is the main difference between source and install #243
-
I am simple zsh user. My main plugins are : zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting These are already complicated because of What command should I use to install these? Example zshrc has no mention of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So, given the repos you listed, this is the correct code to add to your znap clone zsh-users/zsh-completions
$fpath=( ~[zsh-users/zsh-completions] $fpath )
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting |
Beta Was this translation helpful? Give feedback.
source
is for starting plugins.install
is for making new commands or completions available to you. The latter originally it made symlinks to executables and functions, like a package manager would. However, I decided that is not the best way to do things, since it requires all kinds of maintenance. Thus, now it simply adds things to your$path
or$fpath
and autoloads functions for you. As such, it really doesn't contain much logic anymore that you couldn't add to your.zshrc
file yourself. I will probably deprecate it soon and then remove it some time later.So, given the repos you listed, this is the correct code to add to your
.zshrc
file: