Default crontab editor

Hi guys

i cannot find a way to permanently change crontab editor.

export EDITOR=nano

works but after reboot vim comes up again.

Any clues guys how to change crontab editor for good?

Thank you.

1 Like

try adding it to $HOME/.profile

Or /etc/profile

mkdir -p /etc/profile.d
cat << EOF >> /etc/profile.d/custom.sh
export EDITOR=nano
EOF
. /etc/profile
2 Likes

This did the trick. Many thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.