diff --git a/share/completions/ip.fish b/share/completions/ip.fish index 912104418..31694f95a 100644 --- a/share/completions/ip.fish +++ b/share/completions/ip.fish @@ -177,7 +177,7 @@ end function __fish_ip_device command ip -o link show | while read -l a b c - printf '%s\t%s\n' (string replace ':' '' -- $b) Device + printf '%s\t%s\n' (string replace -r '(@.*)?:' '' -- $b) Device end end