Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shell/nushell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Shell for Nushell {
def --env "update-env" [] {{
for $var in $in {{
if $var.op == "set" {{
if $var.name == 'PATH' {{
if ($var.name | str upcase) == 'PATH' {{
$env.PATH = ($var.value | split row (char esep))
}} else {{
load-env {{($var.name): $var.value}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export def --env --wrapped main [command?: string, --help, ...rest: string] {
def --env "update-env" [] {
for $var in $in {
if $var.op == "set" {
if $var.name == 'PATH' {
if ($var.name | str upcase) == 'PATH' {
$env.PATH = ($var.value | split row (char esep))
} else {
load-env {($var.name): $var.value}
Expand Down
Loading