|
|
|
@ -57,6 +57,9 @@ function _miaou_exec() { |
|
|
|
|
|
|
|
if ((COMP_CWORD == 3)); then |
|
|
|
# command or file from inside container |
|
|
|
compopt -o filenames |
|
|
|
compopt -o nospace |
|
|
|
|
|
|
|
COMPREPLY=($( |
|
|
|
incus exec "$container" -- bash << EOF |
|
|
|
source /etc/bash_completion |
|
|
|
@ -84,7 +87,6 @@ EOF |
|
|
|
COMP_POINT=$((COMP_POINT + 1)) |
|
|
|
|
|
|
|
# echo -e "\ncompletion_command $completion_command \nprev=$prev \ncur=$cur \nCOMP_WORDS=(${COMP_WORDS[@]}) \nCOMP_CWORD=$COMP_CWORD \nCOMP_LINE=$COMP_LINE \nCOMP_POINT=$COMP_POINT" >&2 |
|
|
|
echo -e "\ncommand={$completion_command}" >&2 |
|
|
|
|
|
|
|
COMPREPLY=($( |
|
|
|
incus exec "$container" -- bash << EOF |
|
|
|
|