mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Using a zsh idiom to obtain the plugin dir path.
This commit is contained in:
parent
99a5bcdd18
commit
b5129a8aaf
1 changed files with 2 additions and 2 deletions
|
|
@ -43,8 +43,8 @@ initialize_completions() {
|
||||||
# Save the location of the current completion dump file.
|
# Save the location of the current completion dump file.
|
||||||
ZSH_COMPDUMP=${ZDOTDIR:-${HOME}}/.zcompdump-$short_host-$ZSH_VERSION
|
ZSH_COMPDUMP=${ZDOTDIR:-${HOME}}/.zcompdump-$short_host-$ZSH_VERSION
|
||||||
|
|
||||||
# plugins need to be added to the functions path before compinit
|
# the plugin directories need to be added to the functions path before compinit
|
||||||
for plugin in $ZSH_PLUGIN_PATHS; { fpath=($(dirname $plugin) $fpath) }
|
for plugin in $ZSH_PLUGIN_PATHS; { fpath=(${plugin:h} $fpath) }
|
||||||
|
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit -i -d $ZSH_COMPDUMP
|
compinit -i -d $ZSH_COMPDUMP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue