-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
29 lines (28 loc) · 632 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# shellcheck disable=SC2148,SC2155
#
# Be sure we have folder for secrets
#
mkdir -p "${PWD}/.secrets"
#
# automatically switch NODE version based on .nvmrc
#
[ -z "${NVM_DIR}" ] && export NVM_DIR="$HOME/.nvm"
export NODE_VERSIONS="${NVM_DIR}/versions/node"
export NODE_VERSION_PREFIX="v"
use node
#
# Ask Node.js to skip warnings printing
#
export NODE_NO_WARNINGS=1
#
# Enable default DEBUG levels
#
export DEBUG=
#
# OpenAI API key, see https://beta.openai.com/account/api-keys
#
export OPENAI_API_KEY=$(cat "${PWD}/.secrets/openai_api_token")
#
# make scripts executable by short name without path
#
PATH_add "${PWD}/.scripts"