From 2fa58be0d039c16859650d8c20b847491c99b6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacky=20Alcin=C3=A9?= Date: Thu, 21 Dec 2017 11:40:28 -0800 Subject: [PATCH 1/2] feat(libexec): Add 'init' command. --- libexec/tfenv-init | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 libexec/tfenv-init diff --git a/libexec/tfenv-init b/libexec/tfenv-init new file mode 100755 index 0000000..870c14d --- /dev/null +++ b/libexec/tfenv-init @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +[ -n "${TFENV_DEBUG}" ] && set -x + +export PATH="${TFENV_ROOT}/bin:${PATH}" From fec2848b61f44e2a1c6f8e8f6f8e78cbcbbbde8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacky=20Alcin=C3=A9?= Date: Thu, 21 Dec 2017 11:41:06 -0800 Subject: [PATCH 2/2] doc(help): Update to include 'init'. --- libexec/tfenv-help | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/tfenv-help b/libexec/tfenv-help index b9c9c85..80c26e9 100755 --- a/libexec/tfenv-help +++ b/libexec/tfenv-help @@ -11,6 +11,7 @@ Commands: list List all installed versions list-remote List all installable versions version-name Print current version + init Update environment to use 'tfenv' correctly. '; exit 0;