2013-03-24 17:19:09 +00:00
|
|
|
_mountpoint_module()
|
|
|
|
{
|
|
|
|
local cur prev OPTS
|
|
|
|
COMPREPLY=()
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
|
case $prev in
|
2013-04-07 11:12:04 +03:00
|
|
|
'-h'|'--help'|'-V'|'--version')
|
|
|
|
return 0
|
|
|
|
;;
|
2013-03-24 17:19:09 +00:00
|
|
|
esac
|
|
|
|
case $cur in
|
|
|
|
-*)
|
2019-08-02 19:39:05 +01:00
|
|
|
OPTS="--quiet --nofollow --fs-devno --devno --help --version"
|
2013-03-24 17:19:09 +00:00
|
|
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
2013-09-30 15:49:00 +02:00
|
|
|
local IFS=$'\n'
|
2013-03-24 17:19:09 +00:00
|
|
|
compopt -o filenames
|
|
|
|
COMPREPLY=( $(compgen -f -- ${cur:-"/"}) )
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
complete -F _mountpoint_module mountpoint
|