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
in ur bashrc, after lines: completion ]; then completion
if [ -f /etc/bash_
. /etc/bash_
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