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

2010-01-12 Thread Anishsane
*** 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).

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2010-01-12 Thread Anishsane
*** 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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs