From 48c3df621b00878c65838438eedb4cd15df2246d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 7 Aug 2018 17:28:56 +0200 Subject: [PATCH] Add readme info on delaying histfile appending --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 6bdba8f..49574fc 100644 --- a/README.md +++ b/README.md @@ -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: ``` {