Skip to content

Commit

Permalink
Merge pull request #240 from tfutils/add-init-command
Browse files Browse the repository at this point in the history
Add init command
  • Loading branch information
Zordrak authored Feb 6, 2021
2 parents 44a68eb + 30efaad commit 7703dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions libexec/tfenv-help
Original file line number Diff line number Diff line change
Expand Up @@ -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;
5 changes: 5 additions & 0 deletions libexec/tfenv-init
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ -n "${TFENV_DEBUG}" ] && set -x

export PATH="${TFENV_ROOT}/bin:${PATH}"

0 comments on commit 7703dca

Please sign in to comment.