2022-04-25 19:34:35 +02:00

59 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:::{important} You are reading the help for Irssi 1.0. **The current release version is Neırssi 1.3.**
:::
# alias
<!-- comment
Please submit changes to
- https://github.com/ailin-nemui/irssi/blob/master/docs/help/in/alias.in
- https://github.com/ailin-nemui/irssi/blob/master/src/fe-common/core/fe-settings.c
endcomment -->
## Syntax ##
<div class="irssisyntax highlight"><pre style="\-\-cmdlen:5ch"><code><span class="synB">ALIAS</span> <span class="syn10">[<span class="syn14">[<span class="synB">-</span>]</span><span class="syn09">&lt;alias></span> <span class="syn14">[<span class="syn13">&lt;command></span>]</span>]</span></code></pre></div>
## 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 parameters given to the alias are expanded in '$[\d]'; for example $0,
$1, $2, $8, ..., as well as any other special variable.
If you don't use any parameters in your alias, all parameters will be
automatically appended after it.
## Examples ##
/ALIAS
/ALIAS UH USERHOST
/ALIAS COMEBACK SAY I was hoping for a battle of wits, but you seem to be unarmed.
/ALIAS -COMEBACK
/ALIAS UNACT SCRIPT EXEC \$_->activity(0) for Irssi::windows
/ALIAS QOP ^MSG Q op $C
## References ##
[https://github.com/irssi/irssi/blob/master/docs/special_vars.txt](https://github.com/irssi/irssi/blob/master/docs/special_vars.txt)
## See also ##
[BIND](/documentation/help/1.0/bind), [UNALIAS](/documentation/help/1.0/unalias)