Home Reference HScript commands 

chalias hscript command

Create an alias for a channel name.

Usages

  1. chalias channel alias

  2. chalias [-r] [channel_name | node_name]

  3. chalias -e [channel_name | node_name]

Gives a channel another name by which it can be referenced. The original name is still valid and can be used in expressions.

If you specify only a channel name, the command lists any aliases on the channel. If you specify only a node name, the command lists any aliases on any of the node’s channels.

Options

-r

Recursively list the aliases of channels on node_name and its children.

-e [channel_name | node_name]

Erase aliases. If a channel name is given, the command erases any aliases on the channel. If a node name is given, the command erases any aliases on any of the node’s channels.

Examples

chalias /obj/model/tx translate_x
Creates an alias named “translate_x” for /obj/model/tx so that it may be referred to as /obj/model/translate_x.

chalias /obj/model/tx
Lists any aliases on /obj/model/tx.

chalias -e /obj/model
Erases the aliases on all the channels of /obj/model.

Replaced by