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 <henders...@gmail.com> To: Aaron Davies <aaron.dav...@gmail.com> Cc: Screen Users <screen-users@gnu.org> 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 <aaron.dav...@gmail.com> 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 screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users