[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: path and editor



"Mike Egglestone" wrote:
  >HI...
  >I've been looking all over the web for these 2 simple answers and can't
  >find them....
  >
  >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

Nearly: echo $PATH
  
(except in csh and its derivatives, where $path will do as well.

  >basically... the identical command to 
  >path   from the dos OS...
  >
  >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....

If EDITOR is defined in your environment, it will be used by many programs
that look for a default editor.  To set it, insert into /etc/profile,
/etc/environment and anywhere else it may be wanted:

  export EDITOR=vi  (or whatever)

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "He that giveth unto the poor shall not lack..."       
                         Proverbs 28:27 




Reply to: