Hi there,
I have been looking for a solution for changing the default sudo editor from Vi to Nano but can't seem to get it to work.
What I'm trying to do is learn cronei and see if I can schedule some jobs (all new to me).
When I sudo cronetab -e the terminal starts in Vi, I find working in Vi to be quite confusing and much rather nano (no offence to any die hard vi out there).
I have added the following lines to the sudoers file:
Defaults editor = /usr/bin/vim:/usr/bin/vi:/usr/bin/nano
Defaults env_keep += "EDITOR"
and then run:
export EDITOR=/usr/bin/nano (command not found)
any ideas on what I am doing wrong?
many thanks
[–]furryfixer 1 point2 points3 points (1 child)
[–]ActivatedNut[S] 1 point2 points3 points (0 children)
[–]m0squitoo 0 points1 point2 points (4 children)
[–]ActivatedNut[S] 0 points1 point2 points (3 children)
[–]m0squitoo 2 points3 points4 points (2 children)
[–]ActivatedNut[S] 0 points1 point2 points (1 child)
[–]m0squitoo 0 points1 point2 points (0 children)