From fe7056df72ec279c0da1c97307eb75c3c35e3bfc Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 31 Mar 2025 07:46:10 +0200 Subject: tweak(zsh): move CARGO_HOME and NPM_CONFIG_PREFIX under ~/.local/share As per XDG Base Directory specification. --- user/zsh/zshrc-workstation.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/user/zsh/zshrc-workstation.sh b/user/zsh/zshrc-workstation.sh index b174f0a..02c9287 100644 --- a/user/zsh/zshrc-workstation.sh +++ b/user/zsh/zshrc-workstation.sh @@ -6,10 +6,11 @@ alias zed=zeditor alias tokei='tokei -s code -n commas' ## Environment variables -export NPM_CONFIG_PREFIX="$HOME/.local/npm" +export CARGO_HOME="$HOME/.local/share/cargo" +export NPM_CONFIG_PREFIX="$HOME/.local/share/npm" -path+=~/.cargo/bin -path+=($NPM_CONFIG_PREFIX/bin) +path+=$CARGO_HOME/bin +path+=$NPM_CONFIG_PREFIX/bin function ssh() { # In my ~/.ssh/config I configure host-specific background colors, for example: -- cgit v1.2.3