Skip to content

Commit 7029dd8

Browse files
committed
ip: Recognize a as alias for address and l for link
Fixes #94
1 parent b53b287 commit 7029dd8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

completions/ip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _ip()
6262
[[ $subcmd == help ]] && return
6363

6464
case $cmd in
65-
link)
65+
l|link)
6666
case $subcmd in
6767
add)
6868
# TODO
@@ -122,7 +122,7 @@ _ip()
122122
esac
123123
;;
124124

125-
addr|address)
125+
a|addr|address)
126126
case $subcmd in
127127
add|change|replace)
128128
if [[ $prev == dev ]]; then

test/lib/completions/ip.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ setup
1212

1313

1414
assert_complete_any "ip "
15+
sync_after_int
1516

16-
17+
assert_complete_any "ip a "
1718
sync_after_int
1819

1920

0 commit comments

Comments
 (0)