Irssi: Difference between revisions

Jump to navigation Jump to search
628 bytes added ,  24 April 2015
irssi logging per log
No edit summary
(irssi logging per log)
 
(4 intermediate revisions by 4 users not shown)
Line 35: Line 35:
The easy way to enter chat is with the alias "chat" - this runs irssi with a default Redbrick config.
The easy way to enter chat is with the alias "chat" - this runs irssi with a default Redbrick config.


This is fine for a while, but it's nice to personalise things a little and to do this you can edit your ~/.irssi/config file.
This is fine for a while, but it's nice to personalise things a little and to do this you can edit your "~/.irssi/config" file.


Every time you type "irssi" it will start with this configuration file by default.
Every time you type "irssi" it will start with this configuration file by default.
Line 52: Line 52:
   {
   {
     type = "IRC";
     type = "IRC";
         autosendcmd = "/msg chanserv identify <password>";
         autosendcmd = "/msg NickServ identify <password>";
   };
   };
  };  
  };  
Line 231: Line 231:
   {
   {
     type = "IRC";
     type = "IRC";
         autosendcmd = "/msg chanserv identify <password>"; # put in your identify password here.
         autosendcmd = "/msg NickServ identify <password>"; # put in your identify password here.
   };
   };
  };  
  };  
Line 240: Line 240:
  );
  );


What this part does is when you start irssi, it sends a priavte message to chanserv identifying you as you (if you've registered your nickname) and the bit underneath will automatically join you to the channels listed, namely #lobby and #mychannel. You can add as many channels as you want to this list, just copy and paste the same lines and edit the "#channel" bit. Simple really. This saves time and hassle if Redbrick ever restarts or you lose your connection for whatever reason as you don't have to remember all the channels you want to join.
What this part does is when you start irssi, it sends a priavte message to nickserv identifying you as you (if you've registered your nickname) and the bit underneath will automatically join you to the channels listed, namely #lobby and #mychannel. You can add as many channels as you want to this list, just copy and paste the same lines and edit the "#channel" bit. Simple really. This saves time and hassle if Redbrick ever restarts or you lose your connection for whatever reason as you don't have to remember all the channels you want to join.


  #THIS SECTION DEALS WITH SETTINGS SUCH AS YOUR NAME AND TIMESTAMP FORMAT
  #THIS SECTION DEALS WITH SETTINGS SUCH AS YOUR NAME AND TIMESTAMP FORMAT
Line 264: Line 264:


The hilights section well, hilights specific words, commonly people will put their nickname in here, or other key words that they may be interested in.
The hilights section well, hilights specific words, commonly people will put their nickname in here, or other key words that they may be interested in.


== Configuration Options ==
== Configuration Options ==
Line 274: Line 273:


  /set autolog on
  /set autolog on
  /set autolog_path ~/irclogs/$tag/$0.log
  /set autolog_path ~/irclogs/%Y/$tag/$0.%m-%d.log
This turns on irssi logging, and setting the paths like this with the variables means that the irssi will save all the logs for a certain channel/pm in a different file each day.
This turns on irssi logging, and setting the paths like this with the variables means that the irssi will save all the logs for a certain channel or PMs in a different file each day. Different formatting for the path can be constructed for example <code>"~/irclogs/$tag/$0/%Y-%m-%d.log"</code>.


  /set autoclose_query 86400
  /set autoclose_query 86400
Line 336: Line 335:
To get this to work under linux you will need to use Konsole, Gnome-Terminal doesn't support this feature.
To get this to work under linux you will need to use Konsole, Gnome-Terminal doesn't support this feature.
To enable this in Konsole go to Settings -> Notifications and enable taskbar on system bell.
To enable this in Konsole go to Settings -> Notifications and enable taskbar on system bell.
For those who refuse to use KDE software rxvt-unicode also supports this by calling it with 'urxvt --urgentOnBell'.
== Changing the timezone ==
The time on RedBrick is set to whatever localtime is in Dublin. If you're elsewhere in the world you can change the time settings on irssi to match where you are.
    /load perl                                                                 
    /script exec $ENV{'TZ'}='(nameofyourtimezone)';       
eg
    /script exec $ENV{'TZ'}='GMT+1';       


== Saving Your Config ==
== Saving Your Config ==

Navigation menu