A Guide to Efficiently Using Irssi and Screenを適当に和訳

perlで動いているircプロキシのTiaraとIrssiのドキュメントやソースを読んでいます。

英語のサイトで非常に分かりやすい説明があったので自分なりに解釈してみた。

非常に拡張性が高く、プラグインperlで書いて追加する事ができるなんて便利ですね。

今回は、A Guide to Efficiently Using Irssi and Screen内に
Screenを使った利用のススメが書かれていました。

Screenについては、screenを初めて使うためのチュートリアル - UNIX的なアレに詳しい説明が載っています。


irssiの基本的なコマンドまとめ

irssiの起動

irssi

irssiの終了

/quit


IRCサーバへ接続

/connect irc.nullirc.net

チャンネル#testへjoinする

/join #test


/commandで実行できるコマンドのヘルプ(一覧)を見る
各コマンドの例など詳細はhttp://static.quadpoint.org/irssi-docs/help-full.htmlページにあります。

/help

-実行結果
Irssi commands:
accept     disconnect  lastlog  op        scrollback unsilence 
action     echo        layout   oper      server     
(長いので以下省略)

ログファイルの設定
自動ログの設定をONにします。

/SET autolog ON


ログファイルの場所を指定する
~/irclogs/サーバー名/チャンネル名.logが作成される

/SET autolog_path ~/irclogs/$tag/$0.log

日付の追加も可能

/SET autolog_path ~/irclogs/%Y/$tag/$0.%m-%d.log

個人的にrootに置くのは嫌なので/.irssi/ディレクト以下に変更

/SET autolog_path ~/.irssi/irclogs/%Y/$tag/$0.%m-%d.log

-実行結果
発言した後に、以下へログディレクトリとファイルが作られる
~/.irssi/irclogs/2008/freenode/#hoge.08-02.log	


プラグインの設定
~/.irssi/scriptsディレクトリへスクリプトファイルを置いて/run を実行

/run <scriptname>


自動起動の設定
/.irssi/scripts/autorun 以下にファイルを置くとスクリプトを自動で実行してくれます。

http://coderepos.org/share/browser/lang/perl/irssi/scripts
にもプラグインが沢山あります。
早速、irssi用のmobircを試してみようと思います。

 

設定Uzeeeeeeee!!デフォルトでいいよ!っていう人は
Irssi - Startup How-Toにめんどくさがりな人用の設定方法が載っています。

主な参考:A Guide to Efficiently Using Irssi and Screen

IRCコマンド一覧

/q って使った事なかった><

 Command 	 Alias 	 Info
/ban 	/bans, /b 	Sets or List bans for a channel
/clear 	/c, /cl 	Clears a channel buffer
/join 	/j 	Joins a channel
/kick 	/k 	Kicks a user
/kickban 	/kb 	Kickban a user
/msg 	/m 	Send a private message to a user
/unban * 	/mub 	Clears the unbanlist (unbans everyone) in a channel
/names 	/n 	Lists the users in the current channel
/query 	/q 	Open a query window with a user, or close current query window
/topic 	/t 	Displays/edits current topic. Tip: use /t[space][tab] to automatically fill in existing topic.
/window close 	/wc 	Force closure of a window.
/whois 	/wi 	WHOIS a user. Displays user information