I want to change the text editor that opens when setting crontab
to VS Code Insider version, so I added the ShellScript below to ./profile
, but GNU nano will open.
Please tell me how to change the text editor that opens when setting the crontab
.
echo export EDITOR=code-insiders>>/home/pi/.profile
source to /.profile
I don't know what shell you're using, but if it's common, neither /profile
nor ~/profile
will run automatically.If the code presented is written in ~/.profile
, source~/.profile
will result in infinite recursion.
In ~/.profile
,
export EDITOR=code-insiders
Reboot the shell by writing
© 2025 OneMinuteCode. All rights reserved.