mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:47:44 +02:00
Add environment change hook (#5600)
* add environment change hook * clippy
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user