- Provides environment configuration scripts (
env.*) that can be used across various shell environments. - Each script sets environment variables based on the
.j2directory, helping to maintain a consistent execution environment for the project.
- Below are the environment configuration files and how to apply them for each OS/shell.
- File:
.j2/env.sh - Usage:
cd .j2 source env.sh
- File:
.j2/env.zsh - Usage:
cd .j2 source env.zsh
- File:
.j2/env.ksh - Usage:
cd .j2 . env.ksh
- File:
.j2/env.fish - Usage:
cd .j2 source env.fish
- File:
.j2/env.csh - Usage:
cd .j2 source env.csh
- File:
.j2/env.ps1 - Usage:
cd .j2 . .\env.ps1
- File:
.j2/env.bat - Usage:
cd .j2 .\env.bat
- Each script sets the
J2_ROOTenvironment variable based on the current directory. - Adds
.j2/binand.j2/libtoPATHandLD_LIBRARY_PATH(orPATHon Windows). - Displays a warning message if the
.j2directory does not exist. - After applying the environment, prints "J2 Environment Activated." along with the current
J2_ROOTpath.
- Each script only works in its respective shell. Use the appropriate file for your environment.
- To apply the environment settings permanently, you can add the commands above to your shell profile (e.g.,
.bashrc,.zshrc, etc.).