diff options
author | snafu | 2017-05-08 09:31:41 +0200 |
---|---|---|
committer | snafu | 2017-05-08 09:31:41 +0200 |
commit | ef3330b46d1540000f0afad0c6bcc3abf26804a2 (patch) | |
tree | c79e29f4a7db466c0e441797814f80bf9bd20f28 | |
parent | f6d4416f271e4c93d1e4f5de7d2d7a9c36a8f63e (diff) | |
download | aur-ef3330b46d1540000f0afad0c6bcc3abf26804a2.tar.gz |
emulate fix
-rw-r--r-- | env-modules-tcl.install | 2 | ||||
-rw-r--r-- | zshcomp.patch | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/env-modules-tcl.install b/env-modules-tcl.install index ed82752942c0..8ddc877a915f 100644 --- a/env-modules-tcl.install +++ b/env-modules-tcl.install @@ -5,7 +5,7 @@ post_install() { echo "the following entry should be added to the zshrc " echo "(or zshenv if the module-cmd should be available in shell-scripts)" echo "" - echo " (( \${+functions[module]} )) || source /usr/env-modules-tcl/init/zsh" + echo " (( \${+functions[module]} )) || source /etc/modules-tcl/init/zsh" echo "" echo "Adapt /etc/modules-tcl/init/modulerc and add your modulefiles to the specified directories." echo "" diff --git a/zshcomp.patch b/zshcomp.patch index d27e5c45a480..c7d89e70463d 100644 --- a/zshcomp.patch +++ b/zshcomp.patch @@ -9,6 +9,7 @@ +# - support for symlinks +# - directory-wise completion +function _module_completion () { ++ emulate -L zsh + local _module_path_prefix + local -a _module_search_path _module_type_d _module_type_f + _module_path_prefix=$(echo ${(q)words[$CURRENT]} | sed -ne 's#\(.*/\).*#\1#p') |