[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-124-geef7941

Ville Skyttä ville.skytta at iki.fi
Mon Feb 4 15:30:40 UTC 2013


The following commit has been merged in the master branch:
commit eef7941842f309491d52a9fef457a8fbb6a4e6a2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Feb 4 17:27:07 2013 +0200

    _available_interfaces: Try with "ip link" if ifconfig is N/A also with -a.

diff --git a/bash_completion b/bash_completion
index 328061a..aa61c86 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list