From d22f251cfdfcc1857c0089c3f5fe86181a3f2cb4 Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Thu, 29 Jan 2026 10:59:13 +0100 Subject: [PATCH] fish: clear existing completions before defining aliases Fish ships with built-in completions for common commands like `j` (share/completions/j.fish for autojump). These override zoxide's completions when using `--cmd j`. Clear them before defining aliases. --- templates/fish.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/fish.txt b/templates/fish.txt index 038e08e..36ca833 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -117,9 +117,11 @@ end {%- when Some with (cmd) %} abbr --erase {{cmd}} &>/dev/null +complete --erase --command {{cmd}} alias {{cmd}}=__zoxide_z abbr --erase {{cmd}}i &>/dev/null +complete --erase --command {{cmd}}i alias {{cmd}}i=__zoxide_zi {%- when None %}