bash/zsh: add ~/.cargo/bin to PATH if present

This commit is contained in:
2024-10-14 22:16:44 +01:00
parent 6dcd55ad4c
commit 99c827b2bf
3 changed files with 4 additions and 3 deletions

3
zshrc.d/cargo.zsh Normal file
View File

@@ -0,0 +1,3 @@
[ -f ~/.config/tabtab/__tabtab.zsh ] && . ~/.config/tabtab/__tabtab.zsh || true
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" || true
[ -d "$HOME/.cargo/bin" ] && addpath "$HOME/.cargo/bin" || true