Each operating system and shell has its own syntax for setting
environment variables.The following table shows how to set the P4CLIENT
environment variable on
various systems:
OS or Shell | Environment Variable Example |
---|---|
UNIX: |
|
UNIX: |
|
VMS |
|
Mac OS X ( |
|
Windows |
Windows administrators running
Perforce
as a service can set variables for use by a specific service with
(See the |
You may use $home
to set environment variables. For
example:
P4IGNORE=$home/myignorefile
$home
is expanded to the path of the user’s home
directory. The user’s home directory is taken to be the value of the
HOME
environment variable or of USERPROFILE
on Windows.
Perforce’s environment variables can be grouped into the following four categories:
Crucial Variables | Useful Variables | Esoteric Variables | Server Variables |
---|---|---|---|