This script is called whenever a new line is to be written to the history file. As this can happen frequently it is not recommended that the script interface for this command be used as it will slow down server operations. The following formatting strings are available in addition to those in the common syntax:
History entry type
Working directory, truncated to history format
Name of affected file
By default the string %t|%d|%u|%w|%s|%v is used, which is the same as the line written to the history file.