Browse Source

refactored3

main
pvincent 3 weeks ago
parent
commit
c5bd04280c
  1. 10
      lib/miaou.completion

10
lib/miaou.completion

@ -161,17 +161,13 @@ EOF
function _miaou_ls { function _miaou_ls {
local cur="${COMP_WORDS[COMP_CWORD]}" local cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur =~ ^- ]]; then if [[ $cur =~ ^- ]]; then
# options # options
COMPREPLY=(--vm) COMPREPLY=(--vm)
else
if ((COMP_CWORD == 1)); then
# containers
COMPREPLY=(--vm $(compgen -W "$(_incus_container)" -- "$cur"))
fi
elif ((COMP_CWORD == 1)); then
# containers
COMPREPLY=(--vm $(compgen -W "$(_incus_container)" -- "$cur"))
fi fi
} }
function _array_intersect { function _array_intersect {

Loading…
Cancel
Save