summaryrefslogtreecommitdiffstats
path: root/bash-completion/findmnt
diff options
context:
space:
mode:
authorSami Kerola2015-08-02 22:24:08 +0200
committerKarel Zak2015-08-03 12:35:18 +0200
commit24bdce6ea844fd11f27808aed165e3d7dbb62d5c (patch)
treeaa0e62a64741038ba0568cb0ce7d7051d818febe /bash-completion/findmnt
parenttests: fix minix test (diff)
downloadkernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.tar.gz
kernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.tar.xz
kernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.zip
bash-completion: update few options changed since v2.26
Attempt to find and update all changes to command line options that has not been reflected in bash-completion files in between versions v2.26 to v2.27-rc1. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion/findmnt')
-rw-r--r--bash-completion/findmnt8
1 files changed, 8 insertions, 0 deletions
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
index 3ad914735..d7e06c8d4 100644
--- a/bash-completion/findmnt
+++ b/bash-completion/findmnt
@@ -85,6 +85,12 @@ _findmnt_module()
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
return 0
;;
+ '-M'|'--mountpoint')
+ local IFS=$'\n'
+ compopt -o filenames
+ COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -105,6 +111,7 @@ _findmnt_module()
--tab-file
--first-only
--invert
+ --json
--list
--task
--noheadings
@@ -118,6 +125,7 @@ _findmnt_module()
--submounts
--source
--target
+ --mountpoint
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )