diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-31 07:46:10 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-31 07:47:53 +0200 |
commit | fe7056df72ec279c0da1c97307eb75c3c35e3bfc (patch) | |
tree | 517183bd9b2b021dd1617ff20d2dde0aa433cf70 | |
parent | 2616e00a5310e1755fdec02147f1110221fb6d36 (diff) |
tweak(zsh): move CARGO_HOME and NPM_CONFIG_PREFIX under ~/.local/share
As per XDG Base Directory specification.
-rw-r--r-- | user/zsh/zshrc-workstation.sh | 7 |
1 files 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: |