The uninstallation procedure depends on your installation method.
If you installed autoenv with homebrew, run the following:
$ brew uninstall 'autoenv'
If you installed autoenv with npm, run the following:
$ npm uninstall -g '@hyperupcall/autoenv'
If you installed autoenv with Git, run the following:
rm -rf ~/.autoenv
After uninstalling autoenv, your shell may still contain parts of autoenv in memory. To prevent executing these parts, run the following in each open terminal:
unset -f 'cd'
Note that the -f
is important. This removes autoenv's custom cd
function and allows the shell to use its own cd
builtin instead.