diff --git a/modules/completion/compdefs.zsh b/modules/completion/compdefs.zsh deleted file mode 100644 index 465f8e3..0000000 --- a/modules/completion/compdefs.zsh +++ /dev/null @@ -1,14 +0,0 @@ -# -# Alias compdefs -# - -# Any aliased commands will not function with completion without compdefs. -# Because completion is the LAST module to be loaded (so we make sure to catch all completions) -# we must assign the compdefs here, as opposed to within the modules themselves. - -# Unfortunately, I'm not aware of a worthwhile way to ensure that these will be included in .zcompdump - -# zpacman_frontend -> pacman -if (( ${+zpacman_frontend} )); then - compdef ${zpacman_frontend}='pacman' -fi diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 12b2023..161ea98 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -18,9 +18,6 @@ fpath=(${0:h}/external/src ${fpath}) # load and initialize the completion system autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}" -# set any compdefs -source ${0:h}/compdefs.zsh - # # zsh options diff --git a/modules/pacman/functions/_pacman_frontend b/modules/pacman/functions/_pacman_frontend new file mode 100644 index 0000000..2f2bf71 --- /dev/null +++ b/modules/pacman/functions/_pacman_frontend @@ -0,0 +1,3 @@ +#compdef aurman packer wrapaur yaourt + +service=pacman; _pacman