Fix to README for notification formatting

This commit is contained in:
Michael Aquilina 2019-07-31 13:40:01 +01:00
parent 7721d45abe
commit d039eea61b
No known key found for this signature in database
GPG key ID: 636066730B056BD1

View file

@ -99,13 +99,14 @@ You can change the formatting of notifications by setting the values for ``AUTO_
``AUTO_NOTIFY_BODY``. When writing these values, the following variables will be replaced according to
the data that ``auto-notify`` has detected:
* `%command` - the command that the user executed
* `%elapsed` - number of seconds that elapsed
* `%exit_code` - the exit code of the command that was executed
* ``%command`` - the command that the user executed
* ``%elapsed`` - number of seconds that elapsed
* ``%exit_code`` - the exit code of the command that was executed
An example of how these values can be set is shown below:
::
export AUTO_NOTIFY_TITLE="Hey! %command has just finished"
export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code"