You can define a new alias. The alias_name is
the name of the new alias to create.
About this task
ccm alias alias_name alias_string...
- alias_name
- Specifies the name of the new alias you are defining.
- alias_string
- Specifies a value to be used for the alias definition. If you
specify a single alias_string, it is split by white
space to form the items for the alias definition. If you specify more
than one argument after alias_name, each argument
is taken as an item for the alias, but is not split.
Example
- Create an alias to
check out a file with a new version.
ccm alias getf "checkout -t"
When you use the new alias, it will be in this form:
ccm getf myversion foo.c
- Change the value of an alias.
ccm alias alias_name "new
alias value"
For example, assume you have an alias, my_query,
defined to query for objects. Now you want to change the value of my_query to
query for tasks. You would change the my_query alias
value to query for tasks by running the alias command.
- Define an alias named vprop with
two items, properties and -verbose.
(The alias_string ["properties -verbose"]
will be split by white space to form the items for the alias definition.)
ccm alias vprop "properties -verbose"
- Define an alias named vprop with
two items, properties and verbose.
(Each argument [properties -verbose] is taken as
an item for the alias, but is not split.)
ccm alias vprop properties -verbose