mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-08-24 10:14:47 -05:00
fish: clear existing completions before defining aliases (#1165)
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.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user