[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alias in .xsession

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.

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.

Stephen Touset

Reply to: