Skip to content

Instantly share code, notes, and snippets.

@integrii
Last active August 29, 2015 14:05
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 integrii/de15b6fab1703c29c233 to your computer and use it in GitHub Desktop.
Save integrii/de15b6fab1703c29c233 to your computer and use it in GitHub Desktop.
Create or attach screen with irssi
#!/bin/bash
# Save script to ~/.irssi.sh
# Creates a screen and starts irssi in it.
# If the screen already exists, it simply attaches it.
# Create an alias in your ~/.bashrc to access it simply.
# alias irc='~/.irssi.sh'
if screen -list | grep -q "irssi"; then
screen -x irssi
else
screen -S irssi irssi
fi
@integrii
Copy link
Author

I use this to ensure a persistent irc presence by simply typing 'irc'.

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