completions/ip: Restyle

Just run `fish_indent` on the entire thing.
This commit is contained in:
Fabian Homborg 2018-11-12 16:28:24 +01:00
parent 15f089897d
commit 2d2f7c8fb1

View File

@ -158,7 +158,8 @@ function __fish_ip_commandwords
echo $word echo $word
end end
case '-*' case '-*'
test $have_command = 0; and continue test $have_command = 0
and continue
echo $word echo $word
case '*' case '*'
if test $skip = 1 if test $skip = 1
@ -182,7 +183,7 @@ end
function __fish_ip_scope function __fish_ip_scope
if test -r /etc/iproute2/rt_scopes if test -r /etc/iproute2/rt_scopes
string replace -r '#.*' '' < /etc/iproute2/rt_scopes \ string replace -r '#.*' '' </etc/iproute2/rt_scopes \
| string match -v '^\s*$' \ | string match -v '^\s*$' \
| string replace -r '(\S+)\s*(\S+)' '$1\t$2\n$2\t$1' \ | string replace -r '(\S+)\s*(\S+)' '$1\t$2\n$2\t$1' \
| string match -rv '^(global|link|host).*' # Ignore scopes with better descriptions | string match -rv '^(global|link|host).*' # Ignore scopes with better descriptions