Skip to main content

ealias

Discworld player help

ealias

Name

ealias - Edit an alias in the Discworld alias system

Syntax

ealias <alias>
ealias new <alias>
ealias copy <alias> to <new alias>

Description

The basic form of this command will read an existing alias into the line editor and allow you to edit it, saving the edited alias in place of the old one.

You can also create a 'new' alias directly and begin editing it immediately.

This command also allows you to 'copy' an existing alias to a new alias name and edit the new version, so long as the new name isn't already an alias.

Note that when editing an existing alias, there may be a surplus '$*$' sequence. It is added to the end of aliases created with 'alias', if not specified within them. You may need to delete it.

Examples

> alias womblefrog tell $*$ Are you a womble, or a frog?!
Added alias 'womblefrog'.

> ea spike
No alias 'spike' defined.

> ealias new spike
Enter your text. Use ** on a line by itself to exit.
1 ]
...
Added alias 'spike'.

> ealias copy womblefrog to spike
The alias 'spike' already exists.

> ealias copy womblefrog to frogwomble
Enter your text. Use ** on a line by itself to exit.
2 ]
...
Added alias 'frogwomble'.

See also

alias, unalias, nickname