diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-08-27 15:22:14 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-08-27 15:22:14 -0700 |
commit | 2a854aae481e7eb064729db28a71ed0efb2f33e6 (patch) | |
tree | e14cf07882b51c5416944eb49f847524046e6d79 /Functions | |
parent | 97b4a30c4e5f4837bac7c5c67bd583d3aeaf7886 (diff) | |
download | zsh-2a854aae481e7eb064729db28a71ed0efb2f33e6.tar.gz zsh-2a854aae481e7eb064729db28a71ed0efb2f33e6.tar.xz zsh-2a854aae481e7eb064729db28a71ed0efb2f33e6.zip |
52028: improvements to _shadow / _unshadow, plus helper and doc
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Misc/mkshadow | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Functions/Misc/mkshadow b/Functions/Misc/mkshadow new file mode 100644 index 000000000..2ae3a0f2c --- /dev/null +++ b/Functions/Misc/mkshadow @@ -0,0 +1,11 @@ +#autoload +# Front-end to the completion helper _shadow for use outside completion. +# This just forces proper autoload of _shadow/_unshadow and calls them. + +autoload _shadow +mkshadow() { unset REPLY; _shadow "$@" } +rmshadow() { unset REPLY; _unshadow } + +# Bootstrap because of autoload special case +unset REPLY +_shadow "$@" |