mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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.
This commit is contained in:
parent
2961dcc4be
commit
a2cb9cceaf
1 changed files with 2 additions and 0 deletions
|
@ -7,4 +7,6 @@ function __history_completions --argument limit
|
||||||
history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | head -n$limit
|
history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | head -n$limit
|
||||||
end
|
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
|
complete -k -c j -a '(__history_completions 25)' -f
|
||||||
|
|
Loading…
Reference in a new issue