Contains a file name without a path. The file(s) it points to are used to store other Perforce environment or registry variables. The current working directory (returned by
PWD) and its parents are searched for the file. If the file exists, then the variable settings within the file are used.
A sample P4CONFIG file might contain the following lines:
P4CONFIG makes it trivial to switch Perforce settings when switching between different projects. If you place a configuration file in each of your client workspaces and set
P4CONFIG to point to that file, your Perforce settings will change to the settings in the configuration files automatically as you move from directories in one workspace to another.