if ! echo $STY | cut -d. -f1 | xargs ps -p 2> /dev/null | grep -i screen; then
exec screen -RR
fi
Credit to danieldg on Freenode IRC for this approach.
Mostly about programming, mostly in Python.
if ! echo $STY | cut -d. -f1 | xargs ps -p 2> /dev/null | grep -i screen; then
exec screen -RR
fi
No comments:
Post a Comment