Skip to content

Instantly share code, notes, and snippets.

@Xerkus
Created August 31, 2014 13:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xerkus/60698a6530bc30f5afe1 to your computer and use it in GitHub Desktop.
Save Xerkus/60698a6530bc30f5afe1 to your computer and use it in GitHub Desktop.
IRSSI script to allow to switch between windows using /<number>
sub cmd_winswitch {
my ($data, $server, $witem) = @_;
if ($data =~ /^\/([0-9]+)$/) {
$server->command("win " . $1);
Irssi::signal_stop();
}
}
Irssi::signal_add_first('send command', 'cmd_winswitch');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment