On 2/26/25 6:36 PM, Patrick O'Callaghan wrote:
On Wed, 2025-02-26 at 17:41 -0500, Robert Moskowitz wrote:
I ran:

dnf install vim-default-editor --allowerasing

But I am still getting nano when I try to "crontab -e"

Do I have to logout and back in for this change to take?  Or is there an
easier way?
I've no idea what that does, but just installing that package is
unlikely to affect anything that's already running. If you don't want
to log out, try 'exec bash', which will re-initialize Bash within the
same process and may have the desired effect.

$ set|grep -i editor
EDITOR=/usr/bin/nano
$ exec bash
$ set|grep -i editor
EDITOR=/usr/bin/nano

so "exec bash" does not change it.

vim-default-editor I picked up a lot of releases ago when Fedora moved to nano (or maybe it is Xfce) as the default editor to switch to vi.

Guess for now use the export command until my next logout which will probably be the next boot...


--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to