larkery / zsh-histdb

A slightly better history for zsh
MIT License
1.25k stars 74 forks source link

Use the built-in which to detect other built-ins #110

Closed ctranstrum closed 2 years ago

ctranstrum commented 3 years ago

This is a fix for issue #109

On some systems, the built-in which has been overridden with an alias that does not properly detect other built-ins. So we have to ensure we are using the built-in which to safely detect the built-in sysopen.

Sorry the diff is so dirty. The file had a bunch of unnecessary white space that my editor removed automatically.