[Cialug] Cool SSH tricks
Nathan Stien
nathanism at gmail.com
Mon Aug 29 09:41:21 CDT 2011
On Mon, Aug 29, 2011 at 9:40 AM, Barry Von Ahsen <barry at vonahsen.com> wrote:
> screen -dRR -S yourtitlehere
>
> in your .bash_profile
>
> I don't really use bash_profile, instead preferring a check for
interactivity in a monolithic .bashrc.
At the bottom of my bashrc, I have this:
# automatically invoke screen if we're not in a session already
if [ -x `which screen` ] && [ "$TERM" != "screen" ] && [ "$DISPLAY" != ":0"
] && [ "$DISPLAY" != ":0.0" ]; then
# -xRR will attach without detaching other sessions
screen -xRR
fi
The $DISPLAY checks are because I usually don't want screen in a local xterm
(well, Konsole) session.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20110829/32175a91/attachment.html>
More information about the Cialug
mailing list