Re: alias in .xsession
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 pgp0.pgp Description: PGP signature
Re: alias in .xsession
Op ma 16-06-2003, om 18:09 schreef Stephen Touset: 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? -- [EMAIL PROTECTED]:~$ cat .xsession #!/bin/sh alias Eterm=/usr/bin/Eterm -t auto --trans -f rgb:dd/dd/dd export CVSROOT=/home/stephen/Programs/CVS xscreensaver-command -exit xscreensaver mount /mnt/win_c mount /mnt/win_d exec /usr/bin/enlightenment -- Stephen Touset Remove the alias from .xsession and put it in ~/.bashrc Make sure your ~/bash_profile file loads the .bashrc file: if [ -f ~/.bashrc ]; then source ~/.bashrc fi Usually this is already in there so you just need to uncomment this. Then from X load an xterm or eterm and the alias should be available Regards, Benedict Verheyen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
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. 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. Stephen Touset -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: alias in .xsession
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]