A faster cd command that learns your directory habits using frecency for quick navigation across shells.
z.lua is a command-line tool that accelerates filesystem navigation by tracking frequently and recently used directories. It uses a 'frecency' algorithm to predict where you want to go based on your habits, making directory switching much faster than traditional cd commands. It is a faster alternative to z.sh with support for Windows, POSIX shells, and various enhancements.
Command-line users across multiple shells (Bash, Zsh, Fish, PowerShell, Windows cmd) and operating systems who frequently navigate deep directory structures and want to optimize their workflow. It is particularly beneficial for developers, system administrators, and power users who work in terminal environments.
Developers choose z.lua for its exceptional speed—up to 10x faster than similar tools like fasd and autojump—and its broad cross-shell compatibility. Its unique selling point includes an enhanced matching algorithm for more intuitive jumps, optional native C module for ultimate performance, and self-contained distribution as a single Lua script with no external dependencies.
:zap: A new cd command that helps you navigate faster by learning your habits.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks in the README show z.lua is 10x faster than fasd and autojump, with an optional C native module (czmod) reducing update time to 1.6ms for ultimate speed.
It works with Bash, Zsh, Fish, PowerShell, Windows cmd, and POSIX shells, ensuring consistent navigation across diverse environments, as detailed in the installation instructions.
The enhanced matching algorithm prioritizes the last path segment for intuitive jumps, and interactive selection with -i or fzf integration allows for fuzzy matching, improving accuracy.
Distributed as a single Lua script with no external dependencies, making it portable and easy to deploy, as emphasized in the features list.
Installation requires editing shell initialization files (e.g., .bashrc, .zshrc) for each shell, which can be complex and error-prone, especially for multi-shell setups.
Requires Lua to be installed; on systems like WSL-1, additional packages like lua-filesystem are needed, adding setup steps and potential compatibility issues.
The 'Help' section notes missing features like csh/tcsh support and improved completion for all shells, relying on community contributions for gaps.
Default path validation can slow down operations; users must set $_ZL_NO_CHECK or use --purge to clean invalid paths, introducing manual maintenance.
z.lua is an open-source alternative to the following products: