Skip to content

Commit

Permalink
conditional cargo env sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaldarriaga committed Mar 10, 2024
1 parent 96712a5 commit 661a07e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ PATH_HOME_CONFIG="$PATH_HOME/.config"
PATH_HOME_LOCAL="$PATH_HOME/.local"
PATH_HOME_LOCAL_STATE="$PATH_HOME_LOCAL/state"
PATH_HOME_LOCAL_SHARE="$PATH_HOME_LOCAL/share"
PATH_HOME_CARGO="$HOME/.cargo"

# repos
PATH_REPOS="$PATH_HOME/repos"
Expand Down Expand Up @@ -592,7 +593,9 @@ echo -e -n "\x1b[\x33 q"
# cargo envars
# ============

. "$HOME/.cargo/env"
if [ -f "$PATH_HOME_CARGO/env" ]; then
source "$PATH_HOME_CARGO/env"
fi

# =======
# history
Expand Down

0 comments on commit 661a07e

Please sign in to comment.