Auto-completion
-à mettre dans /opt/homebrew/etc/bash_completion.d
This commit is contained in:
14
soco-cli-gui-completion.bash
Normal file
14
soco-cli-gui-completion.bash
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
# https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial#registering-the-completion-script
|
||||||
|
|
||||||
|
_soco-cli-gui_completions()
|
||||||
|
{
|
||||||
|
COMPREPLY=($(compgen -W "deezer_flow franceinfo franceinter k6fm rires rtl level_11 level_13 level_15 vol+ vol- mute_off mute_on pause next prev start stop alarms inform sysinfo play_local_file play_local_dir list_favs clear_queue list_queue" "${COMP_WORDS[1]}"))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
complete -F _soco-cli-gui_completions soco-cli-gui
|
||||||
|
|
||||||
|
|
||||||
|
#complete -W "deezer_flow franceinfo franceinfo k6fm rires rtl level_11 level_13 level_15 vol+ vol- mute_off mute_on pause next prev start stop alarms inform sysinfo" soco-cli-gui.sh
|
||||||
Reference in New Issue
Block a user