mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00:00
Support configs with no hooks in rusty-paths.nu (#1096)
Use upsert instead of update to support configurations without PWD-env hooks (the default)
This commit is contained in:
parent
c62a46d6e3
commit
4f54b1ab9a
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
# 2. Add `source rusty-paths.nu` to `$nu.config-path`
|
# 2. Add `source rusty-paths.nu` to `$nu.config-path`
|
||||||
|
|
||||||
|
|
||||||
$env.config = ($env.config | update hooks.env_change.PWD {
|
$env.config = ($env.config | upsert hooks.env_change.PWD {
|
||||||
append {
|
append {
|
||||||
condition: {|_, after| ($after | path join 'Cargo.lock' | path exists) }
|
condition: {|_, after| ($after | path join 'Cargo.lock' | path exists) }
|
||||||
code: {
|
code: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue