bash/zsh: add ~/.cargo/bin to PATH if present
This commit is contained in:
3
bashrc
3
bashrc
@@ -110,6 +110,3 @@ if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then
|
||||
fi
|
||||
|
||||
# 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"
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
# uninstall by removing these lines
|
||||
[ -f ~/.config/tabtab/__tabtab.bash ] && . ~/.config/tabtab/__tabtab.bash || 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
3
zshrc.d/cargo.zsh
Normal 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
|
||||
Reference in New Issue
Block a user