From 7c62b573699f518b9c0b678ecb3e848d0d1e7e3c Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 6 Apr 2026 15:06:55 +0400 Subject: [PATCH] working now! --- lib/miaou.completion | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/miaou.completion b/lib/miaou.completion index 2104f86..6a99649 100644 --- a/lib/miaou.completion +++ b/lib/miaou.completion @@ -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