From 5cd1a16cfb34b48b34b161c0f448d231f510e5b4 Mon Sep 17 00:00:00 2001 From: scbj Date: Thu, 14 Nov 2024 11:52:05 +0100 Subject: [PATCH] source cargo if installed --- bashrc/.bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bashrc/.bashrc b/bashrc/.bashrc index 299bb28..78202c7 100644 --- a/bashrc/.bashrc +++ b/bashrc/.bashrc @@ -41,7 +41,6 @@ export TERM="xterm-256color" # extend PATH variable # export PATH=$PATH:~/path/to/add -export PATH="${PATH}:~/dotfiles/misc/scripts/" # setup starship eval "$(starship init bash)" @@ -56,3 +55,10 @@ source "${script_path}"/dunst.sh # source alias file source ~/.bash_alias + + +# source cargo if available +cargo_env="~/.cargo/env" +if [ -f "${cargo_env}" ]; then + source "${cargo_env}" +fi