Skip to content

Commit

Permalink
explain usage a bit better
Browse files Browse the repository at this point in the history
add more details on how the files could/should be sourced.
add info on how to use them permanently.

thanks to asaveljevs for the inspiration.
  • Loading branch information
richlv committed Oct 28, 2015
1 parent b858208 commit 1637526
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Zabbix Bash Completion

Bash completion for Zabbix commands

To try this out, source the file. For example:
To try this out, source the files. For example:

$ . zabbix_get-completion
$ . zabbix_get-completion; . zabbix-utils-completion
$ zabbix_get -<tab><tab>

For zabbix_get, item key completion is available. Available item keys are hardcoded. If the currently completed key ends
Expand Down Expand Up @@ -41,6 +41,14 @@ For all daemons, runtime options are completed. For log level changing:
For all completions, parameters are supported via space. Specifying them right away or via an equal sign (like -pvalue
or --param=value) is not supported.

# Installing

Simple testing can be done by sourcing the files. Completion for get and sender depends on zabbix-utils-completion.
Completion for agentd, server and proxy depends on zabbix-daemons-completion.

To make Zabbix command completion available permanently, place all the files in /etc/bash_completion.d/ and start a new
shell session.

# Requirements

* awk
Expand Down

0 comments on commit 1637526

Please sign in to comment.