5th June 2001
[Up]
MUNDI Meta-commands (Fri May 5 01:09:08 BST 1989)
=================================================
The meta-comands fall into four main categories: those connected with
history (listing and substituting), aliases, (again, both listing and
substituting are supported), changing cosmetic features of the front-
end program, (namely the prompt, the internal field seperators, and
the meta-characters themselves), and miscellaneous. The metacommands
listed below are correct with the default key- bindings; if you change
them, it's your own funeral.
METACOMMAND EFFECT
----------------------------------------------------------------------------
% List all known history.
%{number} List last {number} commands.
!! Repeat previous command.
!{number} Repeat command number {number}.
!-{number} of -{number} Repeat the {number}'th previous command.
!{string} Repeat the last command beginning with {string}
^{string1}^{string2} Replace {string1} with {string2} in last command.
", ' or ` Prepend a quote to the previous command.
>{string} {rest of line} Make {string} an alias for {rest of line}.
>{string} Print what {string} is an alias for.
> List all aliases.
<{string} Make {string} represent only itself.
&{string} Change internal field seperators to {string}
*{char1}{char2} If {char1} is currently in use as a metachar,
change it to be {char2} instead.
* List current meta-key bindings.
@{string} Change the prompt to {string} with %-escapes:
%t Insert current time.
%h Insert current history-number.
%m Insert client-mode.
%M Insert client-mode (upper case).
%p Insert persona-name
%l Insert current location.
%u Insert usercode being used.
%c Insert computer being used.
%% Insert a percent-sign.
={filename} Read commands from the named file.
#{whatever} {Whatever} is a comment.
|{whatever} {Whatever} will be echoed to the screen.
(These are mostly useful in startup files)