fix(zoxide): restore CDPATH support in cd/z execution #14
Reference in New Issue
Block a user
Delete Branch "fix/cdpath-cd-execution"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
cd subdir(orz subdir) silently fell through to zoxide query instead of resolving againstCDPATHentrieszfunction now mirrors the completion logic: check direct path → check each CDPATH prefix → fall back to zoxide queryManual Verification
CDPATHto include a parent directory (e.g.set -x CDPATH /some/parent)cd subdirwheresubdirexists under that CDPATH parent but not in$PWD/some/parent/subdir(previously this silently queried zoxide and either went somewhere wrong or failed)cd .andcd ~(zero-arg /$HOME) still workcd -(previous dir) still workscd projfor a frecent path) still works when there's no matching CDPATH directory