mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Adds the actual plugin dirs to the fpath.
Actually can someone clarify this? I don't see a difference, whether I add the plugin path to fpath, the plugin file or nothing at all. Everything working fine, no matter what I do.
This commit is contained in:
parent
0fcd9a3092
commit
a4725aba06
1 changed files with 4 additions and 2 deletions
|
|
@ -34,15 +34,17 @@ find_plugin_paths() {
|
|||
}
|
||||
|
||||
initialize_completions() {
|
||||
# Figure out the SHORT hostname, scutil is for OS X users
|
||||
local short_host
|
||||
local plugin
|
||||
|
||||
# Figure out the SHORT hostname, scutil is for OS X users
|
||||
short_host=$($(scutil --get ComputerName 2>/dev/null) || echo ${HOST/.*/})
|
||||
|
||||
# Save the location of the current completion dump file.
|
||||
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-$short_host-$ZSH_VERSION"
|
||||
|
||||
# plugins need to be added to the functions path before compinit
|
||||
fpath=($ZSH_PLUGIN_PATHS $fpath)
|
||||
for plugin in $ZSH_PLUGIN_PATHS; { fpath=($(dirname $plugin) $fpath) }
|
||||
|
||||
autoload -U compinit
|
||||
compinit -i -d $ZSH_COMPDUMP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue