diff --git a/src/cli/self_update.rs b/src/cli/self_update.rs index eec1849f2d..9d7c2cc747 100644 --- a/src/cli/self_update.rs +++ b/src/cli/self_update.rs @@ -454,7 +454,7 @@ the corresponding `env` file under {cargo_home}. This is usually done by running one of the following (note the leading DOT): . "{cargo_home}/env" # For sh/bash/zsh/ash/dash/pdksh source "{cargo_home}/env.fish" # For fish - source $"{cargo_home_nushell}/env.nu" # For nushell + source "{cargo_home_nushell}/env.nu" # For nushell source "{cargo_home}/env.tcsh" # For tcsh . "{cargo_home}/env.ps1" # For pwsh source "{cargo_home}/env.xsh" # For xonsh diff --git a/src/cli/self_update/env.nu b/src/cli/self_update/env.nu index 66e2d50e22..782e41e7c5 100644 --- a/src/cli/self_update/env.nu +++ b/src/cli/self_update/env.nu @@ -1,2 +1,2 @@ use std/util "path add" -path add $"{cargo_bin}" +path add "{cargo_bin}" diff --git a/src/cli/self_update/shell.rs b/src/cli/self_update/shell.rs index 4fb51dfbdd..04396f5b60 100644 --- a/src/cli/self_update/shell.rs +++ b/src/cli/self_update/shell.rs @@ -311,13 +311,13 @@ impl UnixShell for Nu { fn source_string(&self, process: &Process) -> Result { Ok(format!( - r#"source $"{}/env.nu""#, + r#"source "{}/env.nu""#, self.cargo_home_str(process)? )) } fn cargo_home_str(&self, process: &Process) -> Result> { - cargo_home_str_with_home("($nu.home-path)", process) + cargo_home_str_with_home("~", process) } }