Skip to content

Command line application to manage different environment variables for different projects on your system.

License

Notifications You must be signed in to change notification settings

mstark5652/zenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zenv

Command line application to manage different environment variables for different projects on your system.

Usage

  • source zenv {environment_name} will set environment variables for the specified project. For environment_name to work, you will need a zsh script setup in the root directory of your env directory. Meaning $ZENV_ENV_PATH/<environment_name>.zsh should exist. You can also replace environment_name with . to use the current directory name.
  • zenv list will list available environment.
  • zenv init will create a new environment file for the current working directory. If one already exists, it will just go into edit mode.
  • zenv edit will open the environment file in edit mode.

Example environment file

#!/bin/zsh
export NODE_ENV=development;
export PORT=3000;
export KEY_PATH="/keys/public_key.pem";

Install

Run make install

Uninstall

Run make uninstall

Environment Variables

  • ZENV_ENV_PATH
    • The path to your environment configuration files.
    • Example: ZENV_ENV_PATH=$HOME/env I recommend setting this environment variable in your .zshrc configuration file.

License

See LICENSE.md

About

Command line application to manage different environment variables for different projects on your system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published