|
From: | Kevin Rodgers |
Subject: | Re: help with M-x term |
Date: | Thu, 13 Jul 2006 09:14:03 -0600 |
User-agent: | Thunderbird 1.5.0.4 (Windows/20060516) |
yz7502@gmail.com wrote:
I have a question on the M-x term environment I'm using ksh and I have some aliases defined in .emacs_ksh. When I invoke M-x term, the aliases are not there. Should I define the aliases somewhere else?
If those aliases are not specific to ksh when run under Emacs, thenyes you should define them in the $ENV file. I've used a couple different approaches to setting ENV in my .profile:
case "$-" in (*i*) export ENV=$HOME/.kshrc ;; (*) unset ENV ;; esac or: if [[ -f $HOME/.kshrc ]]; then export KSHRC=$HOME/.kshrc export ENV='${KSHRC[(_$-=0)+(_=1)-_${-%%*i*}]}' fi -- Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |