add the previous display_output hook as doc example

This commit is contained in:
amtoine 2023-07-14 10:42:30 +02:00
parent c411d781d2
commit fe201d6970
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -294,7 +294,7 @@ $env.config = {
env_change: {
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
}
display_output: { table } # run before the output of a command is drawn
display_output: { table } # run before the output of a command is drawn, example: `{ if (term size).columns >= 100 { table -e } else { table } }`
command_not_found: { null } # return an error message when a command is not found
}