Comment 2 for bug 346520

Revision history for this message
Anishsane (anish-sane) wrote :

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