r/suckless•
sshbio

An attempt at a ii wrapper script

irc.sh - The scirpt. It may evolve with more sed regexes and channels.

I made a small (~40 SLOC, 100 with comments and spacing) sh script using tail -f | sed to format the output.

It is used for starting the servers and opening vim: irc Then in the ~/irc directory, it is used to get the output feed:

cd ~/irc
irc irc.oftc.org/

or

irc irc.oftc.org/#suckless

Path must be relative to the ~/irc dir and will append /out at the end.

It will also set the window name to the channel name (irc.freenode.net/#suckless).

Screenshot with dvtm.

I am still learning shell scripting, so do not hesitate to be rude with its code quality if you feel like so! :)

Posted Mar 7, 2016, 6:46 PM UTC

50

No comments yet

Nobody commented on this post, or the comments weren't captured.