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/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cli/self_update/env.nu
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
use std/util "path add"
path add $"{cargo_bin}"
path add "{cargo_bin}"
4 changes: 2 additions & 2 deletions src/cli/self_update/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ impl UnixShell for Nu {

fn source_string(&self, process: &Process) -> Result<String> {
Ok(format!(
r#"source $"{}/env.nu""#,
r#"source "{}/env.nu""#,
self.cargo_home_str(process)?
))
}

fn cargo_home_str(&self, process: &Process) -> Result<Cow<'static, str>> {
cargo_home_str_with_home("($nu.home-path)", process)
cargo_home_str_with_home("~", process)
}
}

Expand Down