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


P4CONFIG

Description

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.

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 contain this data:
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 1999 Perforce Software.
Contact us at [email protected]
Last updated: 09/15/99 (Manual version 99.1.cr.6)