Created
November 14, 2021 23:35
-
-
Save bsiver/b58424bbec0321d983b0de9a3dac9179 to your computer and use it in GitHub Desktop.
This file contains 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
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true" | |
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/ | |
export PATH=$PATH:/usr/local/opt/mysql\@5.6/bin/:/usr/local/opt/openssl/bin/ | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` | |
PROMPT='%(?.%F{green}√.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' | |
# Turn off all beeps | |
unsetopt BEEP | |
# Java version switching | |
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version" | |
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local node_version="$(nvm version)" | |
local nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then | |
nvm install | |
elif [ "$nvmrc_node_version" != "$node_version" ]; then | |
nvm use | |
fi | |
elif [ "$node_version" != "$(nvm version default)" ]; then | |
echo "Reverting to nvm default version" | |
nvm use default | |
fi | |
} | |
add-zsh-hook chpwd load-nvmrc | |
load-nvmrc | |
export SPROUT_LDAP_USER='bensiver' | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
sdm ssh config | |
export WORKON_HOME=~/.venvs | |
source /Users/bensiver/.pyenv/versions/tireswing/bin/virtualenvwrapper.sh | |
alias kubectl="minikube kubectl --" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment