Browse Source

Merge completions into functions

Completions are nothing more than auto-loadable functions prefixed with
an underscore placed somewhere in $FPATH.
master
Sorin Ionescu 13 years ago
parent
commit
9d8187ba6b
  1. 6
      .gitmodules
  2. 4
      helper.zsh
  3. 0
      modules/archive/functions/_extract
  4. 0
      modules/archive/functions/_ls-archive
  5. 1
      modules/completion/completions
  6. 1
      modules/completion/functions
  7. 0
      modules/git/functions/_git-hub
  8. 0
      modules/git/functions/_git-hub-short-url
  9. 0
      modules/git/functions/_git-info
  10. 0
      modules/perl/functions/_prep
  11. 0
      modules/perl/functions/_psub
  12. 0
      modules/wakeonlan/functions/_wake

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"] [submodule "modules/history-substring-search/external"]
path = modules/history-substring-search/external path = modules/history-substring-search/external
url = https://github.com/zsh-users/zsh-history-substring-search.git url = https://github.com/zsh-users/zsh-history-substring-search.git
[submodule "modules/syntax-highlighting/external"] [submodule "modules/syntax-highlighting/external"]
path = modules/syntax-highlighting/external path = modules/syntax-highlighting/external
url = https://github.com/zsh-users/zsh-syntax-highlighting.git 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

4
helper.zsh

@ -32,8 +32,8 @@ function omodload {
# Extended globbing is needed for autoloading of module functions. # Extended globbing is needed for autoloading of module functions.
setopt EXTENDED_GLOB setopt EXTENDED_GLOB
# Add functions and completions to fpath. # Add functions to fpath.
fpath=(${argv:+${OMZ}/modules/${^argv}/{functions,completions}(/FN)} $fpath) fpath=(${argv:+${OMZ}/modules/${^argv}/functions(/FN)} $fpath)
# Load Oh My Zsh functions. # Load Oh My Zsh functions.
for ofunction in $OMZ/modules/**/functions/^([_.]*|prompt_*_setup)(.N:t); do for ofunction in $OMZ/modules/**/functions/^([_.]*|prompt_*_setup)(.N:t); do

0
modules/archive/completions/_extract → modules/archive/functions/_extract

0
modules/archive/completions/_ls-archive → modules/archive/functions/_ls-archive

1
modules/completion/completions

@ -1 +0,0 @@
Subproject commit b877df4e7090c9a45da6a4c5f25d8ad172ed2639

1
modules/completion/functions

@ -0,0 +1 @@
Subproject commit 8b89dd9d10e86313f49fafdf88e8540f97346f33

0
modules/git/completions/_git-hub → modules/git/functions/_git-hub

0
modules/git/completions/_git-hub-short-url → modules/git/functions/_git-hub-short-url

0
modules/git/completions/_git-info → modules/git/functions/_git-info

0
modules/perl/completions/_prep → modules/perl/functions/_prep

0
modules/perl/completions/_psub → modules/perl/functions/_psub

0
modules/wakeonlan/completions/_wake → modules/wakeonlan/functions/_wake

Loading…
Cancel
Save