On Wed, Jun 9, 2010 at 12:40 AM, Vadim Zhukov <persg...@gmail.com> wrote:

> 2010/6/9 Vadim Zhukov <persg...@gmail.com>:
> > Basically, you need:
> > 1. echo "set +o emacs-usemeta" >>~/.profile
> > 2. echo "XTerm*allowC1Printable: true" >>~/.Xdefaults
>
> I forgot that xterm doesn't start login shell by default, so
> ~/.profile will not be called. The easiest way to fix this will be:
>
> echo "XTerm*loginShell: true" >>~/.Xdefaults
>
> The only bad side effect is wtmp spam as xterm will log every time it
> starts.
>

you can avoid the wtmp spam by doing this instead:
1. echo "export ENV=~/.kshrc" >>~/.profile
2. echo "set +o emacs-usemeta" >>~/.kshrc
3. echo "XTerm*allowC1Printable: true" >>~/.Xdefaults

doing this, xterm won't invoke ~/.profile, but it *will* invoke ~/.kshrc

-ken

Reply via email to