Zalias

Bridge shell aliases and zoxide: name a directory whatever you actually call it, and let z find it. Aliases become real zoxide entries, so fuzzy matching and frecency apply to them too.

About This Project

zalias bridges shell aliases and zoxide. Shell aliases let a user choose the name for a directory, but they cannot fuzzy-match and must be maintained by hand. zoxide ranks directories by frecency and matches path fragments, but it can only find words that already appear in the path. zalias closes this gap by creating a symlink under a managed directory, such as ~/.local/share/zalias/deploy, that points to the real target. Because zoxide treats the symlink as a second path and does not resolve symlinks when adding entries, commands like z deploy, zi deploy and the other zoxide features work on the user's chosen name.

The tool is written in shell, supports Bash 4+ and zsh, and requires zoxide. Its installer adds a source line to the user's shell configuration, and the project documents configuration options such as ZALIAS_DIR and ZALIAS_RESOLVE, which controls whether the shell lands on the alias path or the real path. Because the symlinks are the only state, a dotfile repository can back them up, and git stores symlinks natively. The README documents known limitations, including reserved subcommand names, the visibility of the alias path in pwd, and the fact that the zsh and macOS or BSD paths have not been tested on those platforms.

The project suits developers who work across many repositories or deeply nested directories and who want to navigate them with personal, memorable names. It may also appeal to people who manage shell dotfiles and want a single place to see defined directory shortcuts.

Project Details

Tags

bashclidirectory-navigationdotfilesproductivityshellzoxidezsh

Explore More Projects