aboutsummaryrefslogtreecommitdiffstats
path: root/completion/arch-chroot.bash
diff options
context:
space:
mode:
Diffstat (limited to 'completion/arch-chroot.bash')
-rw-r--r--completion/arch-chroot.bash6
1 files changed, 2 insertions, 4 deletions
diff --git a/completion/arch-chroot.bash b/completion/arch-chroot.bash
index 37fbf7c..707208a 100644
--- a/completion/arch-chroot.bash
+++ b/completion/arch-chroot.bash
@@ -1,9 +1,7 @@
_arch_chroot() {
compopt +o dirnames
- local cur prev opts
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
+ local cur prev opts i
+ _init_completion -n : || return
opts="-u -h"
for i in "${COMP_WORDS[@]:1:COMP_CWORD-1}"; do