1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-08 04:26:01 -04:00
irssi/docs/help/in/alias.in

33 lines
952 B
Plaintext

Syntax:
@SYNTAX:alias@
Parameters:
A name of the alias and the command to execute. You can prepend the alias
with the '-' character to remove the alias. If no argument is given, your
aliases will be displayed.
Description:
Creates or updates an alias. You can use the ';' character to separate
multiple commands.
The parametesr given to the alias are expanded in '$[\d]' For example $0,
$1, $2, $8, $12, ...
If you don't use any parameters in your alias, all parameters will be
automatically appended after it.
Examples:
/ALIAS COMEBACK SAY I was hoping for a battle of wits, but you seem to be unarmed.
/ALIAS -COMEBACK
/ALIAS ATAG SCRIPT EXEC Irssi::active_win->change_server(Irssi::server_find_tag("$0"));
/ALIAS UNACT SCRIPT EXEC foreach $$w (Irssi::windows()) { Irssi::command("window goto $$w->{refnum}")\;} ; WINDOW GOTO $winref
/ALIAS QOP ^MSG Q op $C
See also: BIND, UNALIAS