From 6ae61103c4fe6de301c1711c26c9aeae45c33965 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 28 Nov 2024 09:39:43 +0100 Subject: [PATCH] fix(zsh): keep both installation options for Rust Signed-off-by: Matej Focko --- roles/shell/zsh/templates/zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/shell/zsh/templates/zshrc b/roles/shell/zsh/templates/zshrc index 38c3813..175783e 100644 --- a/roles/shell/zsh/templates/zshrc +++ b/roles/shell/zsh/templates/zshrc @@ -53,7 +53,12 @@ fi # added by Nix installer # export RUSTUP_HOME=/opt/rustup # export CARGO_HOME=/opt/cargo # export PATH=/opt/cargo/bin:$PATH -export PATH=~/.cargo/bin:$PATH + +# For user-space installation +# export PATH=~/.cargo/bin:$PATH + +# For ‹/opt› installation +# export PATH=/opt/cargo/bin:$PATH # [[ -s "/opt/cargo/env" ]] && source /opt/cargo/env ### Go ###