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:
parent
4f54b1ab9a
commit
0b4a1a62a0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue