Skip to content

Instantly share code, notes, and snippets.

@Pharserror
Created June 5, 2017 04:54
Show Gist options
  • Save Pharserror/44ffb58948491758ebf61198662af639 to your computer and use it in GitHub Desktop.
Save Pharserror/44ffb58948491758ebf61198662af639 to your computer and use it in GitHub Desktop.
Irssi config
, { address = "irc.gitter.im"; use_ssl = "yes"; password = "$GITTER_PASS"; }
@Pharserror
Copy link
Author

Pharserror commented Jun 5, 2017

To use:
$ cat path/to/gist | while read line ; do perl -i -slpe 'print $s if $. == $n; $. = 0 if eof' -- -n=99 -s=$line /path/to/irssi/config

-n is the line number on which to insert the new server entries (for irssi it should be the line with the closing ");" of the servers list)

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