I believe he means something like this:
ssh () {
if [ -z "$STY" ] ; then
put_what_to_do_outside_screen_part_here
else
put_what_to_do_inside_screen_part_here
fi
}
You can also use || or && operators to make it more condensed, although it's
less readable.
--
We sell Spatulas, and that's all!
http://spatula-city.org/~im14u2c/
http://sdk-1600.spatula-city.org/
http://spacepatrol.info/
----- Original Message ----
From: Chris Henderson <[email protected]>
To: Aaron Davies <[email protected]>
Cc: Screen Users <[email protected]>
Sent: Tuesday, March 24, 2009 11:45:07 PM
Subject: Re: ssh and bash
On Tue, Mar 24, 2009 at 9:27 PM, Aaron Davies <[email protected]> wrote:
> for 3, condition the creation of the function on your being in screen
> ([ "$STY" ] || ...)
Thanks. Could you please elaborate this a bit? I'm not quite sure what
I need to put in .bashrc.
_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users
_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users