diff options
Diffstat (limited to 'bash-completion/pivot_root')
-rw-r--r-- | bash-completion/pivot_root | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bash-completion/pivot_root b/bash-completion/pivot_root new file mode 100644 index 000000000..54f173425 --- /dev/null +++ b/bash-completion/pivot_root @@ -0,0 +1,14 @@ +_pivot_root_module() +{ + local cur + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + case $COMP_CWORD in + 1|2) + compopt -o filenames + COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) ) + ;; + esac + return 0 +} +complete -F _pivot_root_module pivot_root |