Last active
September 25, 2017 07:11
-
-
Save jparrill/844a0591d6cd53d0058f to your computer and use it in GitHub Desktop.
IRSSI Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Basics | |
/connect irc.nullirc.net | |
/server add -network <name> <url> <port> | |
/join <channel> | |
/alias <name> /action ... | |
## xmpp | |
yum install irssi-xmpp | |
irssi | |
/load xmpp | |
/xmppconnect -host talk.google.com user@server.tld <pass> | |
## Vals | |
Modifier Description | |
$variable A normal variable, expanding to the first match of: | |
| 1) an internal SET variable | |
| 2) an environment variable | |
$[num]variable Expands to the variables value, with 'num' width. If | |
| the number is negative, the value is right-aligned. | |
| The value is padded to meet the width with the | |
| character given after number (default is space). | |
| The value is truncated to specified width unless | |
| '!' character precedes the number. If '.' character | |
| precedes the number the value isn't padded, just | |
| truncated. | |
$#variable Expands to the number of words in $variable. If $variable | |
| is omitted, it assumes $* | |
$@variable Expands to the number of characters in $variable. if | |
| $variable is omitted, it assumes $* | |
$($subvariable) This is somewhat similar to a pointer, in that the | |
| value of $subvar is taken as the name of the | |
| variable to expand to. Nesting is allowed. | |
${expression} Permits the value to be embedded in another string | |
| unambiguously. | |
$!history! Expands to a matching entry in the client's command | |
| history, wildcards allowed. | |
Expand Description | |
$* expands to all arguments passed to an alias | |
$n expands to argument 'n' passed to an alias (counting from zero) | |
$n-m expands to arguments 'n' through 'm' passed to an alias | |
$n- expands to all arguments from 'n' on passed to an alias | |
$-m expands to all arguments up to 'm' passed to an alias | |
$~ expands to the last argument passed to an alias | |
These variables are set and updated dynamically by the client. The case of | |
$A .. $Z is important. | |
Variable Description | |
$, last person who sent you a MSG | |
$. last person to whom you sent a MSG | |
$: last person to join a channel you are on | |
$; last person to send a public message to a channel you are on | |
$A text of your AWAY message, if any | |
$B body of last MSG you sent | |
$C current channel | |
$D last person that NOTIFY detected a signon for | |
$E idle time | |
$F time client was started, $time() format | |
$H current server numeric being processed | |
$I channel you were last INVITEd to | |
$J client version text string | |
$K current value of CMDCHARS | |
$k first character in CMDCHARS | |
$L current contents of the input line | |
$M modes of current channel, if any | |
$N current nickname | |
$O value of STATUS_OPER if you are an irc operator | |
$P if you are a channel operator in $C, expands to a '@' | |
$Q nickname of whomever you are QUERYing | |
$R version of current server | |
$S current server name | |
$T target of current input (channel or nick of query) | |
$U value of cutbuffer | |
$V client release date (format YYYYMMDD) | |
$W current working directory | |
$X your /userhost $N address (user@host) | |
$Y value of REALNAME | |
$Z time of day (hh:mm, can be changed with /SET timestamp_format) | |
$$ a literal '$' | |
$versiontime prints time of the irssi version in HHMM format | |
$sysname system name (eg. Linux) | |
$sysrelease system release (eg. 2.2.18) | |
$sysarch system architecture (eg. i686) | |
$topic channel topic | |
$usermode user mode | |
$cumode own channel user mode | |
$cumode_space like $cumode, but gives space if there's no mode. | |
$tag server tag | |
$chatnet chat network of server | |
$winref window reference number | |
$winname window name | |
$itemname like $T, but use item's visible_name which may be | |
different (eg. $T = !12345chan, $itemname = !chan) | |
## Doc | |
Start: http://www.irssi.org/documentation/startup | |
Tips: http://www.irssi.org/documentation/tips | |
Vals: http://www.irssi.org/documentation/special_vars | |
Alias: http://cybione.org/git/irssi-xmpp.git/plain/docs/FAQ?id=REL052 | |
Gtalk: https://s3hh.wordpress.com/2011/10/07/google-chat-in-irssi/ | |
Telegram: http://nathan.chowning.me/blog/tag/irssi/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment