All pastes #472336 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-05 14:22 UTC
rendered paste body
#!/bin/bash

ID="$(id|awk '{print $1}'|cut -d"=" -f2|cut -b -4)"
RUNNING="$(ps aux|egrep "irssi"|egrep "^${ID}"|head -n 1)"

if [[ "$(echo "${RUNNING}"|awk '{print $11}')" == "SCREEN" ]]
        then
                screen -x
else
                bash
fi