#1297·zoxide

Add --db-only flag to function hook

Author: stderr-to-devnullCreated Sep 2, 2026Updated Sep 2, 2026

The init hook eval "$(zoxide init bash)" should support flag --db-only to make z only look inside DB entries and never choose whatever it finds in CWD.

The current workaround is to re-define the z function after init in this form: z () { cd "$(zoxide query -- "$@")"; }