1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00

Use path join to join path parts (#1097)

Use system specific path separator instead of always `/` leading to a
path with mixed separators on Windows.
This commit is contained in:
Jan Klass 2025-04-21 13:14:14 +02:00 committed by GitHub
parent 4f54b1ab9a
commit 0b4a1a62a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,8 +16,8 @@ $env.config = ($env.config | upsert hooks.env_change.PWD {
code: {
$env.PATH = (
$env.PATH
| prepend ($env.PWD | path join 'target/debug')
| prepend ($env.PWD | path join 'target/release')
| prepend ($env.PWD | path join 'target' 'debug')
| prepend ($env.PWD | path join 'target' 'release')
| uniq
)
}