mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-31 09:01:25 +08:00
completions/ip: Restyle
Just run `fish_indent` on the entire thing.
This commit is contained in:
parent
15f089897d
commit
2d2f7c8fb1
@ -158,7 +158,8 @@ function __fish_ip_commandwords
|
||||
echo $word
|
||||
end
|
||||
case '-*'
|
||||
test $have_command = 0; and continue
|
||||
test $have_command = 0
|
||||
and continue
|
||||
echo $word
|
||||
case '*'
|
||||
if test $skip = 1
|
||||
@ -182,7 +183,7 @@ end
|
||||
|
||||
function __fish_ip_scope
|
||||
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 replace -r '(\S+)\s*(\S+)' '$1\t$2\n$2\t$1' \
|
||||
| string match -rv '^(global|link|host).*' # Ignore scopes with better descriptions
|
||||
|
Loading…
x
Reference in New Issue
Block a user