Add readme info on delaying histfile appending

This commit is contained in:
Kristóf Tóth 2018-08-07 17:28:56 +02:00
parent 21f05ad850
commit 48c3df621b
1 changed files with 7 additions and 0 deletions

View File

@ -184,6 +184,13 @@ Overwriting the current list of excluded file patterns is possible with this mes
### TerminalEventHandler
By default callbacks on terminal history are invoked *as soon as* a command starts to execute in the terminal (they do not wait for the started command to finish, the callback may even run in paralell with the command).
If you want to wait for them and invoke your callbacks *after* the command has finished, please set the `TFW_DELAY_HISTAPPEND` envvar to `1`.
Practically this can be done by appending an `export` to the user's `.bashrc` file from your `Dockerfile`, like so:
`RUN echo "export TFW_DELAY_HISTAPPEND=1" >> /home/${AVATAO_USER}/.bashrc`
Writing to the terminal:
```
{