better deal with cargo
This commit is contained in:
parent
877ffa7f1e
commit
d8641d3fbd
1 changed files with 4 additions and 2 deletions
|
|
@ -16,8 +16,10 @@ if [ -n "$BASH_VERSION" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.cargo" ]; then
|
||||
. "$HOME/.cargo/env"
|
||||
if [ -f "$HOME/.cargo/env" ]; then
|
||||
. "$HOME/.cargo/env"
|
||||
elif [-d "$HOME/.cargo/bin" ]; then
|
||||
PATH="$HOME/.cargo/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue