Z.lua – A new cd command that navigates faster by learning your habits
Enhanced matching can be enabled by exporting the environment:
For a given set of queries (the set of command-line arguments passed to z.lua), a path is a match if and only if:
If no match is found, it will fall back to default matching method. cd to the existent path if there is no match: And there is no matching result in the database, but there is an existent directory which can be accessed with the name “foo” from current directory, ” ” will just work as: So, in the enhanced matching method, you can always use like to change directory even if the new directory is untracked (haven’t been accessed). By default, z.lua will add current directory to database each time before display command prompt (correspond with z.sh).
Source: github.com