Skip to content

Commit 7703dca

Browse files
authored
Merge pull request #240 from tfutils/add-init-command
Add init command
2 parents 44a68eb + 30efaad commit 7703dca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libexec/tfenv-help

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Commands:
1111
list List all installed versions
1212
list-remote List all installable versions
1313
version-name Print current version
14+
init Update environment to use 'tfenv' correctly.
1415
';
1516

1617
exit 0;

libexec/tfenv-init

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
[ -n "${TFENV_DEBUG}" ] && set -x
4+
5+
export PATH="${TFENV_ROOT}/bin:${PATH}"

0 commit comments

Comments
 (0)