
Seamless zoxide integration for Raycast. Ergonomic script commands for navigating and managing your directories.

- Clone this repository
- Add the
commands
directory as a Script Directory in Raycast (installation guide) - If you're using an IDE other than VS Code, set your editor in
commands/edit.sh
, due to how Raycast runs scripts,$EDITOR
may not be available, so it is set manually. Defaults tocode
for VS Code. - Launch Raycast and try it out!
The raycast-z commands leverage your existing zoxide
database (automatically built as you navigate in your shell) to quickly access directories.
Simply enter a directory name or pattern, and z will find the best match.
You can also use absolute paths directly, even if they're not in your
zoxide
database.
- Create a new script command
{action}.sh
in thecommands
directory, usingopen.sh
as your template - Update the command call from
_z "$1" open .
to your desired action:_z "$1" {your_command}
The
_z
function (defined inlib/_z.sh
) handles the zoxide query and command execution in the target directory - Configure the
@raycast.*
metadata to your needsNeed a custom icon? Use our ray.so template
- Test your new command in Raycast