expand env for path (#5692)

This commit is contained in:
WindSoilder 2022-05-31 17:51:42 +08:00 committed by GitHub
parent 997d56a288
commit 41853b9f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,11 +32,11 @@ let-env PROMPT_MULTILINE_INDICATOR = { "::: " }
let-env ENV_CONVERSIONS = { let-env ENV_CONVERSIONS = {
"PATH": { "PATH": {
from_string: { |s| $s | split row (char esep) } from_string: { |s| $s | split row (char esep) }
to_string: { |v| $v | str collect (char esep) } to_string: { |v| $v | path expand | str collect (char esep) }
} }
"Path": { "Path": {
from_string: { |s| $s | split row (char esep) } from_string: { |s| $s | split row (char esep) }
to_string: { |v| $v | str collect (char esep) } to_string: { |v| $v | path expand | str collect (char esep) }
} }
} }