Fix to README for notification formatting
This commit is contained in:
parent
7721d45abe
commit
d039eea61b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
``AUTO_NOTIFY_BODY``. When writing these values, the following variables will be replaced according to
|
||||||
the data that ``auto-notify`` has detected:
|
the data that ``auto-notify`` has detected:
|
||||||
|
|
||||||
* `%command` - the command that the user executed
|
* ``%command`` - the command that the user executed
|
||||||
* `%elapsed` - number of seconds that elapsed
|
* ``%elapsed`` - number of seconds that elapsed
|
||||||
* `%exit_code` - the exit code of the command that was executed
|
* ``%exit_code`` - the exit code of the command that was executed
|
||||||
|
|
||||||
An example of how these values can be set is shown below:
|
An example of how these values can be set is shown below:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
export AUTO_NOTIFY_TITLE="Hey! %command has just finished"
|
export AUTO_NOTIFY_TITLE="Hey! %command has just finished"
|
||||||
export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code"
|
export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue