[Cialug] Cool SSH tricks

Barry Von Ahsen barry at vonahsen.com
Mon Aug 29 10:13:27 CDT 2011


On 8/29/2011 9:41 AM, Nathan Stien wrote:
> 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.

much nicer, I'm stuck on win/putty, so I don't have to worry about 
interactive terms :)


-barry




More information about the Cialug mailing list