Another approach, is to apply following patch: #v+
--- /tmp/ee.pmount 2018-05-09 14:54:34.260864752 +0200 +++ /etc/bash_completion.d/pmount 2018-05-09 14:53:31.347835234 +0200 @@ -22,7 +22,7 @@ have pmount && _pmount() { - local cur prev options devices fslist + local cur prev options devices fslist mdir options=' -r --read-only -w --read-write -s --sync -A --noatime -e --exec \ -t filesystem --type filesystem -c charset --charset charset -u umask \ @@ -34,6 +34,8 @@ cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} + mdir="$(readlink -f /media)" + case "$prev" in -@(t|-type)) COMPREPLY=( $( grep "^[[:space:]]$cur" /proc/filesystems ) ) #v- -- pozdrawiam Łukasz Mach