profile: More robust handling of user's cargo PATH
This commit is contained in:
parent
fe454b34a7
commit
4aa7d0603d
2 changed files with 5 additions and 2 deletions
6
.profile
6
.profile
|
|
@ -1,4 +1,8 @@
|
|||
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
||||
if [ -f "$HOME/.cargo/env" ]; then
|
||||
. "$HOME/.cargo/env"
|
||||
elif [ -d "$HOME/.cargo/bin" ]; then
|
||||
PATH="$HOME/.cargo/bin:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.profile.d" ]; then
|
||||
for pd in "$HOME/.profile.d"/*; do
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ export PATH="$HOME/Library/Python/3.12/bin:$HOME/Library/Python/3.11/bin:$HOME/p
|
|||
export PERL5LIB="$HOME/perl5/lib/perl5:$PERL5LIB"
|
||||
|
||||
eval $(ssh-agent)
|
||||
. "$HOME/.cargo/env"
|
||||
|
||||
alias ls='ls -G'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue