Last active
August 29, 2015 14:05
-
-
Save integrii/de15b6fab1703c29c233 to your computer and use it in GitHub Desktop.
Create or attach screen with irssi
This file contains hidden or 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this to ensure a persistent irc presence by simply typing 'irc'.