Command line application to manage different environment variables for different projects on your system.
source zenv {environment_name}will set environment variables for the specified project. Forenvironment_nameto work, you will need a zsh script setup in the root directory of your env directory. Meaning$ZENV_ENV_PATH/<environment_name>.zshshould exist. You can also replaceenvironment_namewith.to use the current directory name.zenv listwill list available environment.zenv initwill create a new environment file for the current working directory. If one already exists, it will just go into edit mode.zenv editwill open the environment file in edit mode.
#!/bin/zsh
export NODE_ENV=development;
export PORT=3000;
export KEY_PATH="/keys/public_key.pem";Run make install
Run make uninstall
- ZENV_ENV_PATH
- The path to your environment configuration files.
- Example: ZENV_ENV_PATH=$HOME/env
I recommend setting this environment variable in your
.zshrcconfiguration file.
See LICENSE.md