Skip to content

Instantly share code, notes, and snippets.

View imCorfitz's full-sized avatar
🧩
Putting things together

Corfitz imCorfitz

🧩
Putting things together
View GitHub Profile
@imCorfitz
imCorfitz / .bashrc
Last active November 24, 2021 13:07 — forked from callumlocke/.zshrc
BASH and ZSH function to auto-switch to correct Node version
####
# Simple bash alternative to execute nvm use whenever a .nvmrc file is present in your directory.
####
enter_directory() {
if [[ $PWD == $PREV_PWD ]]; then
return
fi
PREV_PWD=$PWD
[[ -f ".nvmrc" ]] && nvm use