Package: ifscheme
Version: 1.5-3
Severity: wishlist
Tags: patch
Hi
I created a little bash-completion script for ifscheme to be put in
/etc/bash_completion.d - would be nice to have it included in some
future release.
Regards
Stefan
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (700, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.11
Locale: LANG=en_US, LC_CTYPE=de_CH (charmap=ISO-8859-1)
Versions of packages ifscheme depends on:
ii ifupdown 0.6.7-0.1 high level tools to configure netw
ifscheme recommends no packages.
-- no debconf information
_ifscheme()
{
cur=${COMP_WORDS[COMP_CWORD]}
schemes=$( cat /etc/network/interfaces | grep "iface.*-.*inet" | cut -d
' ' -f 2 | cut -d '-' -f 2 | sort )
COMPREPLY=( $( compgen -W "$schemes" -- $cur ) )
}
complete -F _ifscheme ifscheme