Skip to content

Instantly share code, notes, and snippets.

@cincodenada
Created November 2, 2013 01:39
Show Gist options
  • Save cincodenada/7274521 to your computer and use it in GitHub Desktop.
Save cincodenada/7274521 to your computer and use it in GitHub Desktop.
A quick alias in irssi to save the scrollback log to a file. I recently turned on logging (/set autolog ON), and wanted to save what scrollback I'd kept as well. After some reading up, this should add the /logsb command, which stores logs for the current channel in the same place as the default logging, in files tagged .scrollback.log. The alias…
/alias logsb lastlog -file ~/irclogs/${tag}/${C}.${F}_${Z}.scrollback.log
@zoobab
Copy link

zoobab commented Dec 30, 2015

17:52 -!- Irssi: Alias logsb added
17:52 -!- Irssi: Could not open lastlog: No such file or directory

Any idea what I should install to make it work? I installed the package "userinfo" to have the lastlog command on the shell, but that does not seem to be the same as this one.

@nicowilliams
Copy link

/alias logsb eval lastlog -file ~/irclogs/${tag}/${C}.${F}_${Z}.scrollback.log

Works for me. You have to mkdir ~/irclogs/freenode or whatever the "server tag" is.

@ehashman
Copy link

I suggest adding -date to the lastlog arguments. Otherwise you just get a mess of timestamps without the corresponding dates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment