Re: path and editor
On Mon, Jan 22, 2001 at 12:46:56PM -0800, Mike Egglestone wrote:
> first....what the heck is the command that lets me see what my command
> path is.....?
>
> I know in unix... you type something like:
> echo $path
maybe try:
$ echo $PATH
> I guess I could just less /etc/profile....but there must be
> something else......
>
> and secondly....
> How would one change the default editor ?
> I looked in the /etc/profile again... and found no reference to EDITOR....
> so I'm wondering if its configured somewhere else....
I hope you're not normally logged on as root! Judging from your
questions that's extremely dangerous.
PATH gets its initial value in /etc/profile (depending on your login shell
that is), but next the .profile and some .bash* from your $HOME directory
are sourced, so you'll have to look in those files too. Besides that's
the place to change the default editor per user.
And now for some the anwsers:)
Changing the default editor system wide:
$ man update-alternatives
Changing the default editor per user:
add a line to your ~/.bash_profile file like:
export EDITOR="emacs or vi or something else"
--
groetjes, carel
Reply to:
- References:
- path and editor
- From: "Mike Egglestone" <Mike_Egglestone@fc.schdist57.bc.ca>