add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
19
old_snippets/auto-nvm-use.en.md
Normal file
19
old_snippets/auto-nvm-use.en.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: "auto nvm use"
|
||||
seo_description: Configuration to automatically run when starting a shell session in a dir with an .nvmrc file
|
||||
date: 2023-03-13T10:33:12+01:00
|
||||
draft: false
|
||||
snippet_types:
|
||||
- nvm
|
||||
---
|
||||
|
||||
Simply adding:
|
||||
|
||||
```
|
||||
[ -f ./.nvmrc ] && nvm use
|
||||
```
|
||||
|
||||
to your .bashrc or .zshrc
|
||||
|
||||
Will automatically run the `nvm use` command should you start the shell in a dir with a `.nvmrc` file.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue