fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
6feec60a8
master
1set -l runtime userparameter_reload\ 2 log_level_increase\ 3 log_level_increase=\ 4 log_level_decrease\ 5 log_level_decrease= 6 7function __fish_string_in_command -a ch 8string match -rq --$ch ( commandline ) 9end 10 11function __fish_prepend -a prefix 12if string match -rq'log_level_(in|de)crease' $prefix 13set var"active checks" collector listener 14end 15 16for iin $var 17echo $prefix =" $i " 18end 19end 20 21# General 22complete -c zabbix_agentd -s c -l config -d"Specify an alternate config-file." 23complete -c zabbix_agentd -f -s f -l foreground -d"Run Zabbix agent in foreground." 24complete -c zabbix_agentd -r -f -s R -l runtime-control -a" $runtime " -d"Perform administrative functions." 25complete -c zabbix_agentd -f -s p -l print -d"Print known items and exit." 26complete -c zabbix_agentd -f -s t -l test -d"Test single item and exit." 27complete -c zabbix_agentd -f -s h -l help -d"Display this help and exit." 28complete -c zabbix_agentd -f -s V -l version -d"Output version information and exit." 29 30# Log levels 31complete -c zabbix_agentd -r -f -s R -l runtime-control -n"__fish_string_in_command log_level_increase" -a"(__fish_prepend log_level_increase)" 32complete -c zabbix_agentd -r -f -s R -l runtime-control -n"__fish_string_in_command log_level_decrease" -a"(__fish_prepend log_level_decrease)"