Score:0

Nano surpress errors

ng flag

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?

diya avatar
la flag
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
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.