Merge completions into functions
Completions are nothing more than auto-loadable functions prefixed with an underscore placed somewhere in $FPATH.
This commit is contained in:
parent
aa0c1faa19
commit
9d8187ba6b
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,9 +1,9 @@
|
||||
[submodule "modules/completion/completions"]
|
||||
path = modules/completion/completions
|
||||
url = https://github.com/zsh-users/zsh-completions.git
|
||||
[submodule "modules/history-substring-search/external"]
|
||||
path = modules/history-substring-search/external
|
||||
url = https://github.com/zsh-users/zsh-history-substring-search.git
|
||||
[submodule "modules/syntax-highlighting/external"]
|
||||
path = modules/syntax-highlighting/external
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
[submodule "modules/completion/functions"]
|
||||
path = modules/completion/functions
|
||||
url = https://github.com/zsh-users/zsh-completions.git
|
||||
|
@ -32,8 +32,8 @@ function omodload {
|
||||
# Extended globbing is needed for autoloading of module functions.
|
||||
setopt EXTENDED_GLOB
|
||||
|
||||
# Add functions and completions to fpath.
|
||||
fpath=(${argv:+${OMZ}/modules/${^argv}/{functions,completions}(/FN)} $fpath)
|
||||
# Add functions to fpath.
|
||||
fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath)
|
||||
|
||||
# Load Oh My Zsh functions.
|
||||
for ofunction in $OMZ/modules/**/functions/^([_.]*|prompt_*_setup)(.N:t); do
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit b877df4e7090c9a45da6a4c5f25d8ad172ed2639
|
1
modules/completion/functions
Submodule
1
modules/completion/functions
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 8b89dd9d10e86313f49fafdf88e8540f97346f33
|
Reference in New Issue
Block a user