Usage:
alias [ [^]name [ wordlist... ] ]

Usage:
~alias [^]name

Alias assigns to name the specified wordlist. All subsequent appearances of the space-delimited name will be substituted with wordlist. If name is preceded by "^" the substitution will only occur at the beginning of a command. This is useful for aliasing a long command to a short name without needing to worry about that same short name inadvertently being used (and expanded) in the middle of other commands. The wordlist may contain multiple commands separated by semicolons.

Within wordlist, $1, $2, $3 ... may be used to indicate the first, second, third ... arguments of name. To have a string with spaces in it handled as a single argument, replace each space with an underscore. Any underscores will be replaced with spaces before the command is executed. For example,

alias colorsrf color $1,s #0$2.a
alias helix5 :200-228
colorsrf light_sea_green helix5
is equivalent to
color light sea green,s #0:200-228.a
which colors the molecular surface of the specified residues light sea green.

The alias command without any arguments reports all current aliases in the Reply Log. The alias command with name only reports the alias for that name. ~alias name deletes the alias for that name.