Browse Source

fix compgen invalid option

main
pvincent 17 hours ago
parent
commit
3c4348e0bd
  1. 2
      README.md
  2. 2
      lib/miaou.completion

2
README.md

@ -8,7 +8,7 @@ incus customized along opinionated conventions plus additional tools
TODO: TODO:
----- -----
* [ ] input: miaou-exec ruby1 -- uptime -p <TAB>
* [x] input: miaou-exec ruby1 -- uptime -p <TAB>
* => bash: line 2: compgen: -p: invalid option * => bash: line 2: compgen: -p: invalid option
* [ ] ... * [ ] ...

2
lib/miaou.completion

@ -111,7 +111,7 @@ EOF
COMPREPLY=($( COMPREPLY=($(
incus exec "$container" -- bash << EOF incus exec "$container" -- bash << EOF
source /etc/bash_completion source /etc/bash_completion
compgen -f "$cur" # | sed 's/\([^ ]*\)/\1\//g'
compgen -f "$cur" 2>/dev/null
EOF EOF
)) ))
fi fi

Loading…
Cancel
Save