Created
August 31, 2014 13:37
-
-
Save Xerkus/60698a6530bc30f5afe1 to your computer and use it in GitHub Desktop.
IRSSI script to allow to switch between windows using /<number>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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