📚Cheatsheets

Cheatsheet collection for go, rust, python, shell and javascript.

Export env from .env file

Export .env file to your environtment variable.

export $(cat .env | xargs)

Make sure file is exists

if [ ! -f .env ]
then
  export $(cat .env | xargs)
fi

Use this if your env file doesn't have # char.

source .env