mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
completions/ip: remove obsolete workaround
This workaround already exists in core completion machinery.
This commit is contained in:
parent
17bdf28b7a
commit
d71aae7d3b
1 changed files with 0 additions and 5 deletions
|
@ -14,11 +14,6 @@ set -l ip_all_commands $ip_commands $ip_addr $ip_link $ip_neigh $ip_route
|
||||||
function __fish_ip_commandwords
|
function __fish_ip_commandwords
|
||||||
set -l skip 0
|
set -l skip 0
|
||||||
set -l cmd (commandline -opc)
|
set -l cmd (commandline -opc)
|
||||||
# HACK: Handle and/or/not specially because they have hardcoded completion behavior
|
|
||||||
# that doesn't remove them from the commandline
|
|
||||||
if contains -- $cmd[1] and or not
|
|
||||||
set -e cmd[1]
|
|
||||||
end
|
|
||||||
# Remove the first word because it's "ip" or an alias for it
|
# Remove the first word because it's "ip" or an alias for it
|
||||||
set -e cmd[1]
|
set -e cmd[1]
|
||||||
set -l have_command 0
|
set -l have_command 0
|
||||||
|
|
Loading…
Reference in a new issue