diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-27 17:34:06 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-27 17:34:06 +0100 |
commit | 8cb53ba692a3df24a9b3159ef221ec3cf8d058e1 (patch) | |
tree | db9b938ab8a4996b1053804c8463da15fc3dacf7 /themes/frontcube.zsh-theme | |
parent | 0f1de0871327f29c437e3cb0e99c48123892e453 (diff) | |
download | zsh-8cb53ba692a3df24a9b3159ef221ec3cf8d058e1.tar.gz zsh-8cb53ba692a3df24a9b3159ef221ec3cf8d058e1.tar.bz2 zsh-8cb53ba692a3df24a9b3159ef221ec3cf8d058e1.zip |
fix(gnu-utils): reassign GNU utils on `preexec` (#10535)
The previous version rebound the `hash` and `rehash` builtins to
reassing GNU utils when they were called. This didn't take into
account that when `$PATH` changes, the commands are rehashed as
well.
This version adds a preexec hook to reassign the GNU utilities
before running any command, if and only if they aren't already
reassigned. This is checked by looking at the `whoami` command.
Fixes #10535
Diffstat (limited to 'themes/frontcube.zsh-theme')
0 files changed, 0 insertions, 0 deletions