Provides the from dotenv
command, that parse a .env file.
open my.env | from dotenv
It is not yet published on cargo, so install it manually:
cargo install --path . --root ~/.config/nushell/plugins
Then register it in the nu config:
register "~/.config/nushell/plugins/bin/nu_plugin_dotenv"
You can achieve a similar result using direnv:
direnv dotenv json my.env | from json