0

I have a small script that copies my dotfiles to servers when I connect.

One of them is my nanorc.

My problem is that I have some legacy servers which dont have the newest version of nano installed.

I get some messages because my .nanorc file has some variables set which the old version dosn't support.

Is there any way I can supress the error messages?

  • I don't think such a feature exists. Consider maintaining two .nanorc templates and running a local setup-this-host-script that copies the version most suitable for the local `nano --version` to `~/.nanorc` or set up a local `alias nano='nano --rcfile=~/.nanorc-legacy'` when necessary – diya Dec 15 '22 at 16:57

0 Answers0