env2

convert environment variables between scripting languages

Install

All systems
curl cmd.cat/env2.sh
Debian Debian
apt-get install env2
Ubuntu
apt-get install env2
image/svg+xml Kali Linux
apt-get install env2
Windows (WSL2)
sudo apt-get update sudo apt-get install env2
Raspbian
apt-get install env2

env2

convert environment variables between scripting languages

Output environment setting code for the target scripting language. Can report only differences or all environment variables. For example, convert csh setup script to bash or the other way around. Or use it to simplify the creation of modulesfiles (cf. package environment-modules). Support bash, csh, ksh, modulecmd, perl, plist, sh, tclsh, tcsh, vim, yaml, and zsh.