X11 automation?

I'm a newbie on OS X and Mac, I bought my first Mac (a Mini) in october last year, so bare with me. :slight_smile:

I usually run X11 to have aixterm displayed on my Mac, what I would like to do is to set a specific xhost + every time I start X11, for example xhost +10.0.0.2 every time I start X11.

Also, if you have any other automation tips I'd apprecaite it, the goal is to have an aixterm on the Mac desktop in as few keystrokes as possible.

Thanks!

I edited:
/private/etc/X11/xinit/xinitrc

and added my 2 hosts
xhost +10.0.0.2 &
xhost +10.0.0.3 &

and that worked.

creating a .xinitrc in my home library with just the above in it made X11 stop working. Oh well. One step closer...