I would like to run some code when zle becomes active.
The only way I know how to do that is
zle-line-init() {
echo hi
}
zle -N zle-line-init
But AFAIK this will replace any potential existing zle-line-init
hooks.
How can I either add to existing hooks (like how precmd has a precmd_functions
array), or restore the previous state of zle-line-init
after my function runs?
Asked by user172877
Nov 14, 2024, 02:07 PM
Last activity: Nov 17, 2024, 07:42 AM
Last activity: Nov 17, 2024, 07:42 AM