From 990afa5693d140b1b001cfc601bfa52e6980d470 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 26 Jan 2021 15:03:50 +1100 Subject: [PATCH] feat: apply XDG to Rust cargo directories --- config/zsh/login/langs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/zsh/login/langs b/config/zsh/login/langs index 3569b2e..fc314ea 100644 --- a/config/zsh/login/langs +++ b/config/zsh/login/langs @@ -21,7 +21,8 @@ fi newbins+=(~/.gem/ruby/*/bin(N) /usr/local/opt/ruby/bin) # rust -newbins+=(~/.cargo/bin) +export CARGO_HOME=$XDG_DATA_HOME/cargo +newbins+=($CARGO_HOME/bin) # perl export -UT PERL_LOCAL_LIB_ROOT perl_local_lib_root