[Bug 346520] Re: bash autocompletion for umount messed up

Anishsane anish.sane at gmail.com
Wed Jan 13 06:22:10 GMT 2010


*** This bug is a duplicate of bug 249337 ***
    https://bugs.launchpad.net/bugs/249337

in ur bashrc, after lines:
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

add following contents:

_umount()
{
	local cur

	COMPREPLY=()
	cur=`_get_cword`

	OLDIFS="$IFS"
	unset IFS
	COMPREPLY=( $( compgen -W '$( mount | cut -d" " -f 3 )' -- $cur ) )
	IFS="$OLDIFS"

	return 0
}
complete -F _umount $dirnames umount

-- 
bash autocompletion for umount messed up
https://bugs.launchpad.net/bugs/346520
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in ubuntu (via bug 249337).



More information about the Ubuntu-server-bugs mailing list