Skip to content

Releases: Hpmason/tenv

v0.3.0 argfile support

25 Aug 02:06

Choose a tag to compare

Feature #3: argfile support

v0.3.0 adds support for argfiles. Provides and easy way to telegraph dependencies and environment variables. Can also be used to to quickly open a shell with a specific environments, allowing multiple versions of programs to be installed without conflicting binaries.

# open new powershell with java8 environment (escaping @ with `)
tenv `@~/tenv/java8.tenv powershell
# ~/tenv/java8.tenv
-e JAVA_HOME=C:\Program Files\AdoptOpenJDK\jdk-8.0.275.1-hotspot
-p $JAVA_HOME/bin
-p C:\Program Files\AdoptOpenJDK\jre-8.0.275.1-hotspot\bin

Fixes

  • #9 UNC paths are not converted to "normal" paths, so the paths should be compatible with most programs
  • #10 ~ is now expanded to the home directory

Install

Install from http://crates.io/ via cargo

cargo install --locked tenv

Install from source

cargo install --path .

v0.2.0

07 Aug 23:34
eb22d87

Choose a tag to compare

Additions

You can now add to PATH when running a specific program #2. useful for adding to PATH and spawning a new shell.

# Add hugo to path and run it
tenv -p C:/dev/hugo hugo

Fixes

Fixed #7. Running new powershell with starship via tenv causes issues when using ctrl+c quickly

tenv v0.1.0

30 Jul 01:53

Choose a tag to compare

First version of tenv.
Supports setting multiple temporary environment variables when running a single command

Install via git using:

cargo install --git https://github.com/Hpmason/tenv