1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 06:58:01 +00:00

node: Add environment variable to store 'n' cache

See: https://github.com/tj/n#installation for details.
This commit is contained in:
Indrajit Raychaudhuri 2021-05-16 22:04:27 -05:00 committed by Indrajit Raychaudhuri
parent 9f37fc9841
commit 28ec39d9b2
2 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,10 @@ home directory.
This will be loaded automatically if nvm is installed in `$NVM_DIR`,
_`$XDG_CONFIG_HOME/nvm`_, _`~/.nvm`_, or is installed with homebrew.
## Variables
- `N_PREFIX` stores the path to [_n_][8] cache.
## Functions
- `node-doc` opens the Node.js online [API documentation][3] in the default
@ -58,3 +62,4 @@ _The authors of this module should be contacted via the [issue tracker][4]._
[5]: https://github.com/nodenv/nodenv
[6]: https://github.com/sstephenson/rbenv
[7]: https://github.com/nvm-sh/nvm
[8]: https://github.com/tj/n

View File

@ -37,3 +37,9 @@ elif (( $+commands[brew] )) \
elif (( ! $+commands[node] )); then
return 1
fi
#
# Variables
#
N_PREFIX="${XDG_CONFIG_HOME:-$HOME/.config}/n" # The path to 'n' cache.