Direnv: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=
=Installation=
=Installation=
=Configuration=
Create an <code>.envrc</code> file in the directory in question:
<syntaxhighlight lang='bash'>
export JAVA_HOME="$(/usr/libexec/java_home -v 11)"
PATH_add "${JAVA_HOME}/bin"
</syntaxhighlight>

Revision as of 03:40, 16 July 2021

External

Internal

Overview

Installation

Configuration

Create an .envrc file in the directory in question:

export JAVA_HOME="$(/usr/libexec/java_home -v 11)"
PATH_add "${JAVA_HOME}/bin"