d.piddy's tumbl

Sat Feb 24

Quick IRC Alias

alias irc="ssh -t irchost 'screen -Dr'" Which means: ssh to irchost (much easier with something like SSHKeychain), power detach (remotely log out if necessary) any attached screen and then reattach. The -t option is necessary to force ssh to assign us a tty even though we’re running a command. Possible improvements:

  • Naming the screen on creation (screen -S irc) and using that name in the above alias so you don’t reattach the wrong screen
  • Automatically start screen if the irc session is not found