Sample Header Ad - 728x90

Zsh Hook Function Definitions as arguments

0 votes
1 answer
373 views
I would like to know if it's possible to define hook functions as arguments or env var when launching zsh instead of defining it in .zshrc or prompt. For example ; zsh -F preexec() { date } -F chpwd() { pwd } Thanks alot
Asked by Jean Luc (3 rep)
Aug 21, 2020, 09:44 AM
Last activity: Aug 25, 2020, 12:20 PM