mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 17:11:56 +00:00
Add readme info on delaying histfile appending
This commit is contained in:
parent
21f05ad850
commit
48c3df621b
@ -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:
|
||||
```
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user