rootfs/etc/bash_completion.d/openlo-completion.bash hinzugefügt
This commit is contained in:
10
rootfs/etc/bash_completion.d/openlo-completion.bash
Normal file
10
rootfs/etc/bash_completion.d/openlo-completion.bash
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
_devices_loopback() {
|
||||||
|
local curw
|
||||||
|
COMPREPLY=()
|
||||||
|
curw=${COMP_WORDS[COMP_CWORD]}
|
||||||
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
|
|
||||||
|
COMPREPLY=($(compgen -W "$(cat ~/.bashrc | grep -A 50 "openlo(" | grep ')' | grep -v '{' | awk '{print $1}' | tr -d ')')" -- $curw))
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
complete -F _devices_loopback -o dirnames openlo
|
||||||
Reference in New Issue
Block a user