initial commit

This commit is contained in:
klein panic
2025-02-03 19:46:21 -05:00
commit 0ea58b195d
4 changed files with 567 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
# Bash completion for chroot_manager
_chroot_manager_completion() {
local cur prev opts cmds
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
cmds="create connect disconnect status install uninstall help"
opts="--verbose --daemon --help -h"
if [[ ${COMP_CWORD} == 1 ]]; then
COMPREPLY=( $(compgen -W "${cmds} ${opts}" -- ${cur}) )
else
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
fi
}
complete -F _chroot_manager_completion chroot_manager