On Mon, Jun 16, 2003 at 07:23:19PM -0400, Stephen Touset wrote: > Bob Proulx wrote: > > >Stephen Touset wrote: > > > > > >>I'm trying to set up my .xsession to include an alias Unfortunately, > >>the alias isn't created--when I run Eterm from the menu, it doesn't > >>include the options. I'm positive that the file is being sourced, > >>because the CVSROOT environment variable is being set correctly. How > >>can I get the alias to apply to my Enlightenment session? > >> > > > > > >Environment variables are inherited from parent to child. Since your > >terminals are all children of the parent xsession you can pass > >environment variables down. > > > >But you can't pass aliases to children. Instead you need to put them > >in your .bashrc or other shell environment file. > > > >Bob > > > > > This won't work, though. I'm trying to get it so that any attempt to > execute Eterm from within the Enlightenment menus will execute the > alias. This is so that I can add in an entry for (for example) Eterm -e > gdb, without having to retype all the other tags for it each time I make > another entry. Not to mention, if I ever decide to change the options, > I'll only have to change it in one place, not in sixty. > > For now, I just did an "export ETERM="-t auto --trans -f rgb:dd/dd/dd", > and I use "Eterm $ETERM" in all the menu files. if you feel like breaking a nut with a sledge hammer, you could:
#!/bin/bash export EP=`which Eterm` mv $EP $EP.real echo -e \#\!/bin/bash\\nexec $EP.real \-t auto \-\-trans \-f rgb:dd/dd/dd > $EP chmod a+x $EP -- hugh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]