2

When you use vipw or crontab or just type select-editor you are presented with the list of the editors installed on the system. How do I add my custom editor to that list?

0

To add an additional alternative application to the Debian alternatives system, use

sudo update-alternatives --install link name path priority

To add an additional editor, run a command as:

sudo update-alternatives --install /usr/bin/editor editor /usr/bin/your-custom-editor 50

where the third entry after --install is the executable of your custom editor. The first entry is the generic command that loads the selected editor, the second the name of the group of alternative applications. The number must be given and indicates a priority.

After that, you should be able to select your custom editor with either sudo update-alternatives --config editor or sudo select-editor.

You can learn more about the Debian alternatives system here.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.