Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (38 loc) · 1.23 KB

cmd_alias.wiki

File metadata and controls

57 lines (38 loc) · 1.23 KB

  1. summary alias command documentation

Table of Contents

alias

Define a new alias, or command, using existing commands and arguments.

Synopsis

Default Aliases

|| `a` || `alias` ||

Description

This command defines new aliases by creating Soar procedures with the given name. The new procedure can then take an arbitrary number of arguments which are post-pended to the given definition and then that entire string is executed as a command. The definition must be a single command, multiple commands are not allowed. The alias procedure checks to see if the name already exists, and does not destroy existing procedures or aliases by the same name. Existing aliases can be removed by using the [cmd_unalias] command. With no arguments, alias returns the list of defined aliases. With only the name given, alias returns the current definition.

Examples

The alias `wmes` is defined as:

If the user executes a command such as:

... it is as if the user had typed this command:

To check what a specific alias is defined as, you would type

See Also

[cmd_unalias]