From 34a3d55ef2ccb7e95a23b3e77f97e2ccd7b4b53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 5 May 2024 10:59:08 +0200 Subject: [PATCH] Move cargo home --- zsh/zprofile.j2 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index a5cf3da..b24085a 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -4,15 +4,7 @@ if [[ "$(passwd --status $USER | awk '{print $2}')" =~ ^(NP|L)$ ]] ; then while ! sudo passwd $USER ; do ; done fi -_path=( - "$HOME/bin" - "$HOME/.cargo/bin" -) - -for part in ${_path[@]} ; do - PATH="${part}:$PATH" -done -export PATH +export PATH="${PATH}:${HOME}/bin" export EDITOR="helix" export VISUAL="helix" @@ -41,6 +33,9 @@ export PASSWORD_STORE_DIR="$HOME/.password-store" export GTK2_RC_FILES=${XDG_CONFIG_HOME}/gtkrc-2.0 +export CARGO_HOME="${XDG_STATE_HOME}/cargo" +export PATH="${PATH}:${CARGO_HOME}/bin" + umask 0022 {% set env = machine.environment | combine(user.environment) %}