Skip to content

Commit

Permalink
use modern way of setting env vars in nushell
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 27, 2023
1 parent 27c3edb commit 50655d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rattler_shell/src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ pub struct NuShell;

impl Shell for NuShell {
fn set_env_var(&self, f: &mut impl Write, env_var: &str, value: &str) -> std::fmt::Result {
writeln!(f, "let-env {} = \"{}\"", env_var, value)
writeln!(f, "$env.{} = \"{}\"", env_var, value)
}

fn unset_env_var(&self, f: &mut impl Write, env_var: &str) -> std::fmt::Result {
Expand Down

0 comments on commit 50655d6

Please sign in to comment.