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
bashrc
View File

@@ -110,6 +110,3 @@ if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then
fi fi
# export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket" # export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash"

View File

@@ -2,3 +2,4 @@
# uninstall by removing these lines # uninstall by removing these lines
[ -f ~/.config/tabtab/__tabtab.bash ] && . ~/.config/tabtab/__tabtab.bash || true [ -f ~/.config/tabtab/__tabtab.bash ] && . ~/.config/tabtab/__tabtab.bash || true
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" || true [ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" || true
[ -d "$HOME/.cargo/bin" ] && addpath "$HOME/.cargo/bin" || true

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