summaryrefslogtreecommitdiff
path: root/bash-completion/pivot_root
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/pivot_root')
-rw-r--r--bash-completion/pivot_root8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/pivot_root b/bash-completion/pivot_root
index 54f17342..961c8837 100644
--- a/bash-completion/pivot_root
+++ b/bash-completion/pivot_root
@@ -1,8 +1,14 @@
_pivot_root_module()
{
- local cur
+ local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $COMP_CWORD in
1|2)
compopt -o filenames