Add some pnpm goodness to ~/.zshenv and update zsh to utilize the builtin OSTYPE environment variable rather than uname

This commit is contained in:
Tony Blyler 2022-12-09 01:19:47 -05:00
parent b82dbede56
commit ca48830242
No known key found for this signature in database

View file

@ -17,7 +17,7 @@ fi
export VISUAL="${EDITOR}"
if [ "$(uname)" = "Darwin" ]; then
if [[ "$OSTYPE" =~ ^darwin ]]; then
if [ -x /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
@ -49,6 +49,14 @@ fi
. "$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
GOPATH="$(go env GOPATH)"
if [ -d "${GOPATH}" ]; then