Better mechanism to choose the default editor (and avoid vi if possible)?

Chris Green cl at isbd.net
Sat May 30 12:07:21 UTC 2020


On Sat, May 30, 2020 at 06:42:41AM +0000, Steve - Gadget Barnes wrote:
> Several other version control systems, (and other systems as well), honour 
> the environmental variable EDITOR - this is an easy way to specify the 
> editor to use for things like hg config --edit without having to use an 
> editor that you are less than happy with. Maybe honouring this and possibly 
> adding mention of it to the helps would be the optimal way to go! 
> 
The 'modern' Linux way is to use the 'alternatives' set-up isn't it?

The default application for each job is configured in
/etc/alternatives  and a (somewhat weird) system of links maintained by
the update-alternatives command allows you to choose what editor (or
whatever) you want to use. 

-- 
Chris Green



More information about the Mercurial mailing list