Perforce Command Reference:   [Index]  [Prev] [Next]


P4CONFIG

Description

Contains a file name that contains other environment or registry variables for the client. 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.

Usage Notes

Used by
p4 client?
Used by p4d server? Command-Line
Alternative
Can be set in P4CONFIG file?
Yes No <none> That would be silly

Value if not Explicitly Set

OS Value
All If not set, this variable is not used.

Example

A sample P4CONFIG file might look like this: P4CLIENT=joes_client P4USER=joe P4PORT=ida:3548

Notes

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:

P4CLIENT P4DIFF
P4EDITOR P4MERGE
P4PASSWD P4PORT
P4USER



Perforce Command Reference:   [Index]  [Prev] [Next]


Copyright 1998 Perforce Software.
Contact us at [email protected]
Last updated: 06/14/98