source cargo if installed

This commit is contained in:
scbj
2024-11-14 11:52:05 +01:00
parent 321f7d0e54
commit 5cd1a16cfb

View File

@@ -41,7 +41,6 @@ export TERM="xterm-256color"
# extend PATH variable # extend PATH variable
# export PATH=$PATH:~/path/to/add # export PATH=$PATH:~/path/to/add
export PATH="${PATH}:~/dotfiles/misc/scripts/"
# setup starship # setup starship
eval "$(starship init bash)" eval "$(starship init bash)"
@@ -56,3 +55,10 @@ source "${script_path}"/dunst.sh
# source alias file # source alias file
source ~/.bash_alias source ~/.bash_alias
# source cargo if available
cargo_env="~/.cargo/env"
if [ -f "${cargo_env}" ]; then
source "${cargo_env}"
fi