summaryrefslogtreecommitdiff
path: root/bash_completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion3
1 files changed, 1 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion
index 328061a8..aa61c868 100644
--- a/bash_completion
+++ b/bash_completion
@@ -901,8 +901,7 @@ _available_interfaces()
if [[ ${1:-} == -w ]]; then
cmd="iwconfig"
elif [[ ${1:-} == -a ]]; then
- # TODO: the corresponding ip link one
- cmd="ifconfig"
+ cmd="{ ifconfig || ip link show up; }"
else
cmd="{ ifconfig -a || ip link show; }"
fi