--- ./bash_completion.orig 2017-07-01 14:08:17.000000000 +0300 +++ ./bash_completion 2017-07-17 20:18:04.452092094 +0300 @@ -905,6 +905,10 @@ COMPREPLY=( $( compgen -W "$( command ls -B \ /etc/sysconfig/interfaces | \ command sed -ne 's|.*ifcfg-\([^*].*\)$|\1|p' )" -- "$cur" ) ) + elif [[ -f /etc/lunar.release ]]; then + # Lunar Linux + COMPREPLY=( $( compgen -W "$( command ls -B \ + /etc/config.d/network)" -- "$cur" ) ) else # Assume Red Hat COMPREPLY=( $( compgen -W "$( printf '%s\n' \ @@ -1381,7 +1385,7 @@ _pci_ids() { COMPREPLY+=( $( compgen -W \ - "$( PATH="$PATH:/sbin" lspci -n | awk '{print $3}')" -- "$cur" ) ) + "$( PATH="$PATH:/sbin:/usr/sbin" lspci -n | awk '{print $3}')" -- "$cur" ) ) } # This function completes on USB IDs