Last active
September 18, 2024 00:49
-
-
Save alexgwolff/a4cb0a8557351a457ffbb8b98000e09f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sublime=subl | |
alias shellrc="subl ~/.zshrc" | |
alias workspace="cd /Users/alexgwolff/Workspace" | |
export POSH_THEME='~/.oh-my-posh-theme.json' | |
export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH" | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
eval "$(oh-my-posh init zsh)" | |
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local nvmrc_path | |
nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version | |
nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then | |
nvm install | |
elif [ "$nvmrc_node_version" != "$(nvm version)" ]; then | |
nvm use | |
fi | |
elif [ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ] && [ "$(nvm version)" != "$(nvm version default)" ]; then | |
nvm use default | |
fi | |
} | |
add-zsh-hook chpwd load-nvmrc | |
load-nvmrc | |
export PYENV_ROOT="$HOME/.pyenv" | |
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment