From 4417a1f985e619cff8dda0f6ffcf81bcb43d17b7 Mon Sep 17 00:00:00 2001 From: Crystal Durham Date: Thu, 20 Aug 2026 14:47:24 -0400 Subject: [PATCH] Change example script location to XDG location The [XDG Base Directory Specification][basedir] includes: > User-specific executable files may be stored in `$HOME/.local/bin`. Distributions should ensure this directory shows up in the UNIX `$PATH` environment variable, at an appropriate place. So: use that as the example path instead of `$HOME/.bin`. [basedir]: --- REPLACING_CARGO.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REPLACING_CARGO.md b/REPLACING_CARGO.md index 8c07b8d..2c8a462 100644 --- a/REPLACING_CARGO.md +++ b/REPLACING_CARGO.md @@ -16,7 +16,7 @@ When calling other programs such as `cmake` or `maturin`, the shell alias usuall 2. Copy the snippet provided below and replace '/path/to/cargo' with the path you got at step 1 3. Save it to a file named `cargo` 4. Run `chmod +x cargo` to make the script executable -5. Prepend the path to the directory where you saved the script to your `PATH` environment variable. For example, if you saved the script as `$HOME/.bin/cargo`, you need to add `$HOME/.bin/` to your `PATH`. The exact way to do this varies depending on the shell; in bash it's `export PATH="$HOME/.bin/:$PATH"` +5. Prepend the path to the directory where you saved the script to your `PATH` environment variable. For example, if you saved the script as `$HOME/.local/bin/cargo`, you need to make sure `$HOME/.local/bin/` is on your `PATH`. The exact way to do this varies depending on the shell; in bash it's `export PATH="$HOME/.local/bin/:$PATH"` ```bash #!/bin/sh