2006/10/16, Paul de Weerd <[EMAIL PROTECTED]>:
On Mon, Oct 16, 2006 at 08:52:26PM +0400, Bruno Carnazzi wrote:
| Hi misc,
|
| I export/alias some important stuff in my ksh .profile. It works
| normally, but since I run screen or xterm, my .profile is not
| evaluated (or even if I launch a sub-shell). I know there is a
| difference between login shell and sub shell but how can I have some
| environment variables and aliases in all context, everytime ?
|
| I use OpenBSD/i386 3.9-release's pdksh.
In your .profile :
export ENV=~/.kshrc
Now put your aliases etc. in your .kshrc. BTW, stuff you export in
.profile shoud be available to you in your subshells.
Thank you Paul, your method works perfectly in all case.
This point is also well explained in man ksh(1).
Now, I can have a fortune for login shell only :)
Best regards,
Bruno.
Cheers,
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/