3

I got this error while using nano in Windows Terminal, with GIT-bash.

$ nano .bashrc
Error in /etc/nanorc on line 237: Error expanding /usr/share/nano/*.nanorc: No such file or directory
torek
  • 448,244
  • 59
  • 642
  • 775
Sylvain
  • 679
  • 9
  • 13

2 Answers2

3

Got my answer here, that I will copy-paste here in case the content is lost:

$ git clone https://github.com/serialhex/nano-highlight
$ cd nano-highlight
$ cp * /usr/share/nano
Sylvain
  • 679
  • 9
  • 13
2

run this command from git bash (as admin)

dos2unix /usr/share/nano/git.nanorc

It fixes line breaks, which are different in Linux and Windows.

from : https://www.scivision.dev/git-for-windows-nano-error-fix/

Nikolai Zaitsev
  • 303
  • 5
  • 9