From 63aa44e40c8fddb055c3783a8a8090e9d348875f 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 -- modules/completion/completions | 1 + completion.zsh => modules/completion/init.zsh | 0 5 files changed, 3 insertions(+), 5 deletions(-) delete mode 160000 completions create mode 160000 modules/completion/completions rename completion.zsh => modules/completion/init.zsh (100%) diff --git a/.gitmodules b/.gitmodules index 5599694b..d42e1e6a 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 f6108b8c..00000000 --- a/completions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f6108b8c4250565611a08b164cfdc85e6c76ee88 diff --git a/init.zsh b/init.zsh index 1ecdb6c1..a2b3ff2d 100644 --- a/init.zsh +++ b/init.zsh @@ -26,7 +26,6 @@ zstyle -a ':omz:load' module 'omodules' fpath=( ${0:h}/themes/*(/FN) ${omodules:+${0:h}/modules/${^omodules}/{functions,completions}(/FN)} - ${0:h}/{functions,completions}(/FN) $fpath ) @@ -38,7 +37,6 @@ source "${0:h}/helper.zsh" source "${0:h}/environment.zsh" source "${0:h}/terminal.zsh" source "${0:h}/keyboard.zsh" -source "${0:h}/completion.zsh" # Autoload Zsh functions. autoload -Uz age diff --git a/modules/completion/completions b/modules/completion/completions new file mode 160000 index 00000000..b877df4e --- /dev/null +++ b/modules/completion/completions @@ -0,0 +1 @@ +Subproject commit b877df4e7090c9a45da6a4c5f25d8ad172ed2639 diff --git a/completion.zsh b/modules/completion/init.zsh similarity index 100% rename from completion.zsh rename to modules/completion/init.zsh