Add some pnpm goodness to ~/.zshenv and update zsh to utilize the builtin OSTYPE environment variable rather than uname
This commit is contained in:
parent
b82dbede56
commit
ca48830242
1 changed files with 9 additions and 1 deletions
|
@ -17,7 +17,7 @@ fi
|
||||||
|
|
||||||
export VISUAL="${EDITOR}"
|
export VISUAL="${EDITOR}"
|
||||||
|
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [[ "$OSTYPE" =~ ^darwin ]]; then
|
||||||
if [ -x /opt/homebrew/bin/brew ]; then
|
if [ -x /opt/homebrew/bin/brew ]; then
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
fi
|
fi
|
||||||
|
@ -49,6 +49,14 @@ fi
|
||||||
|
|
||||||
. "$HOME/.cargo/env" 2>/dev/null
|
. "$HOME/.cargo/env" 2>/dev/null
|
||||||
|
|
||||||
|
if command -v pnpm &> /dev/null; then
|
||||||
|
if [[ "$OSTYPE" =~ ^darwin ]]; then
|
||||||
|
export PNPM_HOME="${HOME}/Library/pnpm"
|
||||||
|
export PATH="$PNPM_HOME:$PATH"
|
||||||
|
mkdir -p PNPM_HOME
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v go &> /dev/null; then
|
if command -v go &> /dev/null; then
|
||||||
GOPATH="$(go env GOPATH)"
|
GOPATH="$(go env GOPATH)"
|
||||||
if [ -d "${GOPATH}" ]; then
|
if [ -d "${GOPATH}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue