14 Jan
2024
14 Jan
'24
10:16
On Sun, 14 Jan 2024 03:02:30 -0500, Felix Miata
The editor systemctl uses for editing is not my preference. I think it's nano. I want mcedit. Where do I change the global default editor to my preference? Nothing looks obvious in /etc/sysconfig/, in yast or in /etc/alternatives/. If there's no simple way, and the /etc/alternatives method can be implemented, I'd like to try it. I attempted so based on https://unix.stackexchange.com/questions/408413/change-default-editor-to-vim... but failed due to 'which editor' returning not found.
Add 'export EDITOR=/usr/bin/mcedit' to /root/.profile . If you want it only for systemctl, use 'export SYSTEMD_EDITOR=/usr/bin/mcedit' instead. -- Robert Webb