diff options
Diffstat (limited to 'completions/mount')
-rw-r--r-- | completions/mount | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/mount b/completions/mount index ffe6629a..6818ac39 100644 --- a/completions/mount +++ b/completions/mount @@ -53,7 +53,8 @@ _mount() # probably Cygwin COMPREPLY=( $( compgen -W "$( mount | awk '! /^[ \t]*#/ {if ($3 ~ /\//) print $3}' )" -- "$cur" ) ) else - COMPREPLY=( $( compgen -W "$( awk '! /^[ \t]*#/ {if ($3 ~ /\//) print $3}' /etc/fstab )" -- "$cur" ) ) + # probably BSD + COMPREPLY=( $( compgen -W "$( awk '! /^[ \t]*#/ {if ($2 ~ /\//) print $2}' /etc/fstab )" -- "$cur" ) ) fi } && complete -F _mount -o default -o dirnames mount |