fana-envy Code
A Go-based TUI for persistent terminal environment and variable manage
Brought to you by:
masfana
| File | Date | Author | Commit |
|---|---|---|---|
| .github | 2025-12-18 |
|
[04ae64] feat: add build/release automation. |
| cmd | 2025-12-18 |
|
[04ae64] feat: add build/release automation. |
| internal | 2025-12-18 |
|
[39fef7] feat: introduce TUI for interactive environment... |
| .gitignore | 2025-12-18 |
|
[68e63e] Initial Commit |
| LICENSE | 2025-12-18 |
|
[c371bd] Adjust Radme |
| README.md | 2025-12-18 |
|
[c371bd] Adjust Radme |
| build.ps1 | 2025-12-18 |
|
[04ae64] feat: add build/release automation. |
| go.mod | 2025-12-18 |
|
[68e63e] Initial Commit |
| go.sum | 2025-12-18 |
|
[39fef7] feat: introduce TUI for interactive environment... |
| image.png | 2025-12-18 |
|
[39fef7] feat: introduce TUI for interactive environment... |
Fana-Envy is a powerful, persistent terminal environment manager built with Go. It allows you to manage environment variables with a TUI, featuring interactive terminals, persistent history, and seamless environment switching.

python when running python).input(), REPLs).PYTHONUNBUFFERED=1 so Python scripts output immediately.FORCE_COLOR=1, CLICOLOR_FORCE=1) for better visibility in the TUI..env format).git clone https://github.com/MasFana/fana-envy.git
cd fana-envy
go build -o envy.exe ./cmd/fana-envy
Run the executable:
./envy.exe
| Shortcut | Description |
|---|---|
Ctrl+N |
New Terminal |
Ctrl+W |
Close Terminal |
Ctrl+H / Ctrl+L |
Switch Terminal Left/Right |
Ctrl+E |
Toggle Environment Editor |
Ctrl+D |
Exit Application |
| Command | Description |
|---|---|
open |
Open the envs folder in your system's file explorer |
new <name> |
Create a new environment |
switch <name> |
Switch to an environment |
set <KEY> <VALUE> |
Set an environment variable |
unset <KEY> |
Remove a variable |
cd <path> |
Change directory |
env |
List current environment variables |
clear |
Clear terminal output |
exit |
Quit the application |
The project follows the standard Go project layout:
fana-envy/
├── cmd/
│ └── fana-envy/ # Entry point
├── internal/
│ ├── config/ # Configuration & History
│ ├── styles/ # UI styling (Lipgloss)
│ ├── terminal/ # Terminal pane logic
│ ├── tui/ # Main Bubble Tea model & view
│ └── utils/ # Helper functions
└── README.md
Configuration files (envs/*.env) and history (.fana_history) are stored in the directory where the binary is located. This allows you to carry the tool on a USB drive or move it between folders without losing your settings.