From a2cb9cceaf021f482ea87908d8477df91844c064 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sat, 14 Apr 2018 23:23:33 -0500 Subject: [PATCH] Erase default autojump completions in j.fish completions The default completions that autojump ships with for fish are broken (emitting output like "1\___\#...") as they use hackes to work around the previous lack of `complete -k`. The history-based autojump completions fully replace it. --- share/completions/j.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/completions/j.fish b/share/completions/j.fish index 7d8a995aa..689e338f8 100644 --- a/share/completions/j.fish +++ b/share/completions/j.fish @@ -7,4 +7,6 @@ function __history_completions --argument limit history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | head -n$limit end +# erase the stock autojump completions, which are no longer needed with this +complete -c j -e complete -k -c j -a '(__history_completions 25)' -f