Skip to content

Instantly share code, notes, and snippets.

@aleohl
Created September 27, 2013 20:13
Show Gist options
  • Save aleohl/6734527 to your computer and use it in GitHub Desktop.
Save aleohl/6734527 to your computer and use it in GitHub Desktop.
irssi one-liner for closing all queries.
/script exec foreach my $w ( Irssi::windows() ) {my $act = $w->{active};next unless defined $act->{type};$w->command("window close") if $act->{type} eq 'QUERY';}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment