change path/command detection in bashrc

This commit is contained in:
James Dixon 2022-11-26 10:43:20 -05:00
parent c72c859deb
commit 20f0a7a913

View File

@ -336,7 +336,7 @@ src_pyenv() {
} }
# go # go
if command -v go > /dev/null; then if command -v go && [ -d "$(go env GOPATH)/bin" ]; then
[ -d "$HOME/go" ] && mv "$HOME/go" "$HOME/.go" [ -d "$HOME/go" ] && mv "$HOME/go" "$HOME/.go"
export GOPATH="$HOME/.go" export GOPATH="$HOME/.go"
export GOWD="$GOPATH/src/github.com/lemonase" export GOWD="$GOPATH/src/github.com/lemonase"
@ -345,9 +345,7 @@ if command -v go > /dev/null; then
fi fi
# rust # rust
if command -v cargo > /dev/null; then [ -d "$HOME/.cargo" ] && appendpath "$HOME/.cargo/bin"
appendpath "$HOME/.cargo/bin"
fi
## macOS package managers ## ## macOS package managers ##
# homebrew # homebrew