Prism 6.0 User's Guide

Creating Aliases for Commands and Variables

Prism provides commands that let you create alternative names for commands, variables, and expressions.

Use the alias command to set up an alternative name for a Prism command. For example,

alias ni nexti

makes ni an alias for the nexti command. Prism provides some default aliases for common commands. Issue alias with no arguments to display a list of the current aliases. Issue the unalias command to remove an alias. For example,

unalias ni

removes the alias created above.

Use the set command to set up an alternative name for a variable or expression. For example,

set alan = annoyingly_long_array_name

abbreviates the annoyingly long array name to alan. You can use this abbreviation subsequently in your program to refer to this variable. Use the unset command to remove a setting. For example,

unset alan

removes the setting created above.

Changes you make via alias and set last for your current Prism session. To make them permanent, you can add the appropriate commands to your .prisminit file; see " Initializing Prism".