Environment

Core Env

Manage environment variables in your shell rc file. All operations are interactive with hidden input for sensitive values.

Features

Hidden Values

Values are hidden with ● when typing — safe for API keys and tokens

Smart Detection

Detects existing variables and warns before replacing

Clean Removal

Removes all definitions of the same variable name

Shell Aware

Writes to .zshrc if it exists, otherwise .bashrc

Commands

core env

Show help

core env set

Add or update a variable (value hidden while typing)

core env unset

Remove a variable (shows list to choose from)

core env ls

List all user-defined variables

Example Session

$ core env set

    ┌─────────────────────────────────────────┐
    │         Set Environment Variable               │
    └─────────────────────────────────────────┘

    ┌─ Variable name
    └─▶ OPENAI_API_KEY

    ┌─ Value for OPENAI_API_KEY
    │  (input will be hidden)
    └─▶ ●●●●●●●●●●●●●●

    ✔ Variable OPENAI_API_KEY set in .zshrc
    • Run: source .zshrc to apply

$ core env ls

    ─────── Environment Variables ───────

    File: .zshrc

    OPENAI_API_KEY              = sk-...
    DATABASE_URL                = postgresql://...

    ──────────────────────────────────────
    2 variable(s) in .zshrc