Should definitions in string hooks capture their variables? #14342
Unanswered
sgvictorino
asked this question in
Q&A
Replies: 1 comment
-
|
I wonder if it's because the env_change hook has closure parameters, and also is a list? hooks: {
pre_prompt: [{ null }] # run before the prompt is shown
pre_execution: [{ null }] # run before the repl input is run
env_change: {
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
}
display_output: "if (term size).columns >= 100 { table -e } else { table }" # run to display the output of a pipeline
command_not_found: { null } # return an error message when a command is not found
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if I've missed something obvious, but is this error intended behavior?
Beta Was this translation helpful? Give feedback.
All reactions