Skip to content

Instantly share code, notes, and snippets.

@atomtigerzoo
Created October 17, 2023 16:02
Show Gist options
  • Save atomtigerzoo/d2524a5d1b60fb072c1991e4337461c1 to your computer and use it in GitHub Desktop.
Save atomtigerzoo/d2524a5d1b60fb072c1991e4337461c1 to your computer and use it in GitHub Desktop.
zsh-oh-my-zsh_show-notice-on-directory-change
# The following goes into .zshrc and need zsh/oh my zsh installed
# Watch folder changes
function chpwd {
if [[ -e .nvmrc ]]; then
# If above file is found inside folder, display the following
echo
echo ✨ nvmrc dotfile found
echo ✨ Please execute \`nvm use\` to use\/install the correct node version!
echo
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment