Purpose:Configures the environment on a per-directory basis

 

Format:DIRENV [on | OFF]

 

Usage:

 

When DIRENV is enabled, TCC will look for a file called ".envtc" when it changes directories. The format of .envtc is:

 

var1=value1

var2=value2

...

 

When TCC enters a directory, it will look in .envtc for environment variables to set while in that directory. When TCC leaves a directory, it will unset the variables in .envtc.

 

You can force DIRENV to always enabled with the DirEnv .INI directive.

 

DIRENV is directory-specific; the optional CD_ENTER and CD_LEAVE aliases are system-wide.