Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
adding '-p precmd' to _normal
- X-seq: zsh-workers 52107
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: adding '-p precmd' to _normal
- Date: Tue, 29 Aug 2023 12:55:35 +0900
- Archived-at: <https://zsh.org/workers/52107>
- List-id: <zsh-workers.zsh.org>
In workers/52037, I replaced '_normal' by '_normal -p env'
in _env (and similarly in _watch), so that only external
command (and its args) are completed.
But I've noticed there are many (about 15?) completion
functions that should complete only external commands
and may require the similar change (adding -p precmd).
Examples are _chroot, _chrt, _screen, etc.
In some other completion functions (_dchroot, _truss, etc.)
'_command_name -e' is used for completing external
command and '_normal' is used for args.
If anyone knows any reason that this two-step method is
better than '_normal -p precmd' then please let me know.
Otherwise I will use '_normal -p precmd' in _chroot etc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author