• Marc Cornellà's avatar
    fix(gnu-utils): reassign GNU utils on `preexec` (#10535) · 8cb53ba6
    Marc Cornellà authored
    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
    8cb53ba6
Name
Last commit
Last update
.github Loading commit data...
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitpod.Dockerfile Loading commit data...
.gitpod.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
oh-my-zsh.sh Loading commit data...