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.
The variable settings in the file must sit alone on each line and be in the form variable=value.
Used by p4 client? | Used by p4d server? |
Command-Line Alternative | Can be set in P4CONFIG file? |
---|---|---|---|
Yes | No | None | That would be silly |
P4CLIENT=joes_client
P4USER=joe
P4PORT=ida:3548
P4CONFIG makes it trivial to switch Perforce settings when switching between different projects. As soon as you move to a directory within a different client workspace, your settings will change accordingly.
The variables that can be set within the P4CONFIG file are: