Skip to content

Commit

Permalink
docs: add docs for fnm configuration (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasylnahuliak authored Nov 18, 2024
1 parent 7deeefc commit e2b7d87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Provide an [**rc**](https://www.baeldung.com/linux/rc-files) file, which is actu
Use cases:

- You have a GUI program that runs git hooks (e.g., VSCode)
- You reference executables that are accessible only from a tweaked $PATH environment variable (e.g., when using rbenv or nvm)
- You reference executables that are accessible only from a tweaked $PATH environment variable (e.g., when using rbenv or nvm, fnm)
- Or even if your GUI program cannot locate the `lefthook` executable :scream:
- Or if you want to use ENV variables that control the executables behavior in `lefthook.yml`

Expand Down Expand Up @@ -331,6 +331,10 @@ In the rc file, export any new environment variables or modify existing ones.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# An fnm way
export FNM_DIR="$HOME/.fnm"
[ -s "$FNM_DIR/fnm.sh" ] && \. "$FNM_DIR/fnm.sh"
# Or maybe just
PATH=$PATH:$HOME/.nvm/versions/node/v15.14.0/bin
```
Expand Down

0 comments on commit e2b7d87

Please sign in to comment.