From 0a238c84a1b2956f77d1510f14f55e4cbdc82dd5 Mon Sep 17 00:00:00 2001 From: rootiest Date: Thu, 30 Apr 2026 19:44:26 -0400 Subject: [PATCH] feat: make zoxide the default cd provider - `cd` is now essentially aliased to `z` allowing frecency matching for `cd` commands. - `cdi` is now aliased to `zi` allowing interactive frecency matching for `cd` commands. --- README.md | 2 +- conf.d/zoxide.fish | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b63aff4..5ae7cbc 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ FZF is themed to Catppuccin Mocha with the following colors set via `FZF_DEFAULT ### Zoxide -Smart `cd` replacement. `z ` jumps to the best frecency match; `zi` opens an interactive selector. +Smart `cd` replacement. `cd` (or `z`) `` jumps to the best frecency match; `cdi` (or `zi`) opens an interactive selector. ### DirEnv diff --git a/conf.d/zoxide.fish b/conf.d/zoxide.fish index 1d10e44..2c29a00 100644 --- a/conf.d/zoxide.fish +++ b/conf.d/zoxide.fish @@ -92,9 +92,10 @@ alias z=__zoxide_z abbr --erase zi &>/dev/null alias zi=__zoxide_zi +abbr --erase cdi &>/dev/null +alias cdi=__zoxide_zi + # ============================================================================= -# -# To initialize zoxide, add this to your configuration (usually -# ~/.config/fish/config.fish): -# -# zoxide init fish | source +# Initialize zoxide: + +zoxide init --cmd=cd fish | source