Installation
How to install better-env
Prerequisites
- Go 1.21+
- Clipboard tools (Linux only): xclip or xsel for bnv copy
Install script
Linux/MacOS
curl -fsSL https://raw.githubusercontent.com/HarishChandran3304/better-env/main/scripts/install.sh | sh
Windows
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -useb https://raw.githubusercontent.com/HarishChandran3304/better-env/main/scripts/install.ps1 | iex"
Go install
go install github.com/HarishChandran3304/better-env@latest
sudo mv ~/go/bin/better-env ~/usr/local/bin/bnv # Ensure on PATH
Build from source
git clone https://github.com/HarishChandran3304/better-env.git
cd better-env
go build
sudo mv better-env ~/usr/local/bin/bnv