mirror of
https://github.com/nushell/nushell.git
synced 2025-04-11 14:58:21 +02:00
add the previous display_output
hook as doc example
This commit is contained in:
parent
c411d781d2
commit
fe201d6970
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user