From 92816f6db7e75bfc6f1015f57d9e8f54cb87bbc4 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 28 Mar 2012 14:29:45 -0400 Subject: [PATCH] [#23] Convert completion into a module --- .gitmodules | 4 ++-- completions | 1 - init.zsh | 2 -- completion.zsh => modules/completion/init.zsh | 0 4 files changed, 2 insertions(+), 5 deletions(-) delete mode 160000 completions rename completion.zsh => modules/completion/init.zsh (100%) diff --git a/.gitmodules b/.gitmodules index e192b3f..5d6a7dd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,5 +1,5 @@ -[submodule "completions"] - path = completions +[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 diff --git a/completions b/completions deleted file mode 160000 index f6108b8..0000000 --- a/completions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f6108b8c4250565611a08b164cfdc85e6c76ee88 diff --git a/init.zsh b/init.zsh index a52def5..c042c8b 100644 --- a/init.zsh +++ b/init.zsh @@ -26,7 +26,6 @@ zstyle -a ':omz:load' omodule 'omodules' fpath=( ${0:h}/themes/*(/FN) ${omodules:+${0:h}/modules/${^omodules}/{functions,completions}(/FN)} - ${0:h}/{functions,completions}(/FN) $fpath ) @@ -52,7 +51,6 @@ source "${0:h}/helper.zsh" source "${0:h}/environment.zsh" source "${0:h}/terminal.zsh" source "${0:h}/editor.zsh" -source "${0:h}/completion.zsh" # Source modules defined in ~/.zshrc. for omodule in "$omodules[@]"; do diff --git a/completion.zsh b/modules/completion/init.zsh similarity index 100% rename from completion.zsh rename to modules/completion/init.zsh