mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 16:35:16 +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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user