Add environment change hook (#5600)

* add environment change hook

* clippy
This commit is contained in:
JT
2022-05-21 09:49:42 +12:00
committed by GitHub
parent 2cc5952c37
commit a3a9571dac
7 changed files with 344 additions and 269 deletions

View File

@ -206,6 +206,11 @@ let-env config = {
pre_execution: [{
$nothing # replace with source code to run before the repl input is run
}]
env_change: {
PWD: [{|before, after|
$nothing # replace with source code to run if the PWD environment is different since the last repl input
}]
}
}
menus: [
# Configuration for default nushell menus