1834020 Members
3038 Online
110063 Solutions
New Discussion

Re: environment variable

 
subhashni
Regular Advisor

environment variable

Hello,
I don't edit .profile much.Now i need to edit to set up prompt and emacs.pls help.
Thanks
unix4me
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: environment variable

For prompt, just do (for example):

export PS1="`hostname`(!)`whoami`# "

I'm not sure what env variables you require for emacs but they would be set the same way.

Pete

Pete
Jeff Schussele
Honored Contributor

Re: environment variable

Hi,

To set the default editor to emacs, enter the following in your .profile

export EDITOR=emacs

and optionally

export VISUAL=emacs

You should also make sure that your PATH variable contains the location of the emacs binary

export PATH=$PATH:/path/to/emacs

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!