--- ./bash_completion.orig 2016-08-12 22:42:22.000000000 +0300 +++ ./bash_completion 2016-10-16 17:19:39.431480558 +0300 @@ -912,6 +912,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' \ @@ -1392,7 +1392,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