You are not logged in.
Does anyone know howto set the default editor to nano for the entire system.
When I try to edit a crontab job using sudo I get the vi editor.
for example:-
sudo crontab -e (editor is vi)
run the following to get to a root prompt...
sudo su
then run...
export VISUAL=nano
then...
crontab -e (editor is nano)
exit back to user prompt
run...
sudo crontab -e (editor is vi again)
Any ideas? Thx in advance.
Offline
don't drink unwashed fruit juice.
i never make predictions, especially about the future.
Offline
You could make an alias in your .bashrc such that
alias crontabedit='sudo EDITOR=nano crontab -e'
Offline
Thanks, the rename vi and link did the trick.
Cheers :-)
Offline
FYI method 2 on that page is the right way.
Offline