summaryrefslogtreecommitdiffstats
path: root/bash-completion/umount
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/umount')
-rw-r--r--bash-completion/umount7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash-completion/umount b/bash-completion/umount
index 942857718..496474a9b 100644
--- a/bash-completion/umount
+++ b/bash-completion/umount
@@ -17,6 +17,12 @@ _umount_module()
'-h'|'--help'|'-V'|'--version')
return 0
;;
+ '-N'|'--namespace')
+ local NAMESPACE
+ NAMESPACE="$(lsns --type mnt --output PATH --noheadings)"
+ COMPREPLY=( $(compgen -W "$NAMESPACE" -- $cur) )
+ return 0
+ ;;
esac
case $cur in
-*)
@@ -27,6 +33,7 @@ _umount_module()
--fake
--force
--internal-only
+ --namespace
--no-mtab
--lazy
--test-opts