scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3.06k stars 554 forks source link

automatic install on MacosX Catalina errors #337

Open baditaflorin opened 4 years ago

baditaflorin commented 4 years ago
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1177  100  1177    0     0   3949      0 --:--:-- --:--:-- --:--:--  3936
--2020-11-02 03:29:37--  https://github.com/scopatz/nanorc/archive/master.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/scopatz/nanorc/zip/master [following]
--2020-11-02 03:29:38--  https://codeload.github.com/scopatz/nanorc/zip/master
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘/tmp/nanorc.zip’

/tmp/nanorc.zip                                                     [  <=>                                                                                                                                                 ] 111,65K   472KB/s    in 0,2s

2020-11-02 03:29:38 (472 KB/s) - ‘/tmp/nanorc.zip’ saved [114327]

Archive:  /tmp/nanorc.zip
6807e67d2da9c1ff47159174e6e2bea3183bb7a5
   creating: nanorc-master/
  inflating: nanorc-master/.authors.yml
  inflating: nanorc-master/.gitignore
  inflating: nanorc-master/.mailmap
  inflating: nanorc-master/.travis.yml
  inflating: nanorc-master/AUTHORS.rst
  inflating: nanorc-master/Dockerfile.nanorc
  inflating: nanorc-master/Rnw.nanorc
  inflating: nanorc-master/apacheconf.nanorc
  inflating: nanorc-master/arduino.nanorc
  inflating: nanorc-master/asciidoc.nanorc
  inflating: nanorc-master/asm.nanorc
  inflating: nanorc-master/awk.nanorc
  inflating: nanorc-master/batch.nanorc
  inflating: nanorc-master/c.nanorc
  inflating: nanorc-master/clojure.nanorc
  inflating: nanorc-master/cmake.nanorc
  inflating: nanorc-master/coffeescript.nanorc
  inflating: nanorc-master/colortest.nanorc
  inflating: nanorc-master/conf.nanorc
  inflating: nanorc-master/conky.nanorc
  inflating: nanorc-master/creole.nanorc
  inflating: nanorc-master/csh.nanorc
  inflating: nanorc-master/csharp.nanorc
  inflating: nanorc-master/css.nanorc
  inflating: nanorc-master/csv.nanorc
  inflating: nanorc-master/cython.nanorc
  inflating: nanorc-master/dot.nanorc
  inflating: nanorc-master/dotenv.nanorc
  inflating: nanorc-master/elixir.nanorc
  inflating: nanorc-master/email.nanorc
  inflating: nanorc-master/erb.nanorc
  inflating: nanorc-master/etc-hosts.nanorc
  inflating: nanorc-master/fish.nanorc
  inflating: nanorc-master/fortran.nanorc
  inflating: nanorc-master/fsharp.nanorc
  inflating: nanorc-master/gemini.nanorc
  inflating: nanorc-master/genie.nanorc
  inflating: nanorc-master/gentoo.nanorc
  inflating: nanorc-master/git.nanorc
    linking: nanorc-master/gitcommit.nanorc  -> git.nanorc
  inflating: nanorc-master/glsl.nanorc
  inflating: nanorc-master/go.nanorc
  inflating: nanorc-master/gophermap.nanorc
  inflating: nanorc-master/gradle.nanorc
  inflating: nanorc-master/groff.nanorc
  inflating: nanorc-master/haml.nanorc
  inflating: nanorc-master/haskell.nanorc
  inflating: nanorc-master/hcl.nanorc
    linking: nanorc-master/html.j2.nanorc  -> html.nanorc
  inflating: nanorc-master/html.nanorc
  inflating: nanorc-master/i3.nanorc
  inflating: nanorc-master/ical.nanorc
  inflating: nanorc-master/ini.nanorc
  inflating: nanorc-master/inputrc.nanorc
  inflating: nanorc-master/install.sh
  inflating: nanorc-master/jade.nanorc
  inflating: nanorc-master/java.nanorc
  inflating: nanorc-master/javascript.nanorc
  inflating: nanorc-master/js.nanorc
  inflating: nanorc-master/json.nanorc
  inflating: nanorc-master/keymap.nanorc
  inflating: nanorc-master/kickstart.nanorc
  inflating: nanorc-master/kotlin.nanorc
  inflating: nanorc-master/ledger.nanorc
  inflating: nanorc-master/license
  inflating: nanorc-master/lisp.nanorc
  inflating: nanorc-master/lua.nanorc
  inflating: nanorc-master/m3u.nanorc
  inflating: nanorc-master/makefile.nanorc
  inflating: nanorc-master/man.nanorc
  inflating: nanorc-master/markdown.nanorc
  inflating: nanorc-master/moonscript.nanorc
  inflating: nanorc-master/mpdconf.nanorc
  inflating: nanorc-master/mutt.nanorc
  inflating: nanorc-master/nanorc
  inflating: nanorc-master/nanorc.nanorc
  inflating: nanorc-master/nginx.nanorc
  inflating: nanorc-master/nmap.nanorc
  inflating: nanorc-master/ocaml.nanorc
  inflating: nanorc-master/octave.nanorc
  inflating: nanorc-master/patch.nanorc
  inflating: nanorc-master/peg.nanorc
  inflating: nanorc-master/perl.nanorc
  inflating: nanorc-master/perl6.nanorc
  inflating: nanorc-master/php.nanorc
  inflating: nanorc-master/pkg-config.nanorc
  inflating: nanorc-master/pkgbuild.nanorc
  inflating: nanorc-master/po.nanorc
  inflating: nanorc-master/pov.nanorc
  inflating: nanorc-master/powershell.nanorc
  inflating: nanorc-master/privoxy.nanorc
  inflating: nanorc-master/prolog.nanorc
  inflating: nanorc-master/properties.nanorc
  inflating: nanorc-master/pug.nanorc
  inflating: nanorc-master/puppet.nanorc
  inflating: nanorc-master/python.nanorc
  inflating: nanorc-master/reST.nanorc
  inflating: nanorc-master/readme.md
  inflating: nanorc-master/rever.xsh
  inflating: nanorc-master/rpmspec.nanorc
  inflating: nanorc-master/ruby.nanorc
  inflating: nanorc-master/rust.nanorc
  inflating: nanorc-master/scala.nanorc
  inflating: nanorc-master/sed.nanorc
  inflating: nanorc-master/sh.nanorc
  inflating: nanorc-master/shellcheck.sh
  inflating: nanorc-master/sieve.nanorc
  inflating: nanorc-master/sls.nanorc
  inflating: nanorc-master/sparql.nanorc
  inflating: nanorc-master/sql.nanorc
  inflating: nanorc-master/svn.nanorc
  inflating: nanorc-master/swift.nanorc
  inflating: nanorc-master/systemd.nanorc
  inflating: nanorc-master/tcl.nanorc
  inflating: nanorc-master/tex.nanorc
  inflating: nanorc-master/toml.nanorc
  inflating: nanorc-master/ts.nanorc
    linking: nanorc-master/twig.nanorc  -> html.nanorc
  inflating: nanorc-master/vala.nanorc
  inflating: nanorc-master/verilog.nanorc
  inflating: nanorc-master/vi.nanorc
  inflating: nanorc-master/x11basic.nanorc
  inflating: nanorc-master/xml.nanorc
  inflating: nanorc-master/xresources.nanorc
  inflating: nanorc-master/yaml.nanorc
  inflating: nanorc-master/yum.nanorc
  inflating: nanorc-master/zig.nanorc
  inflating: nanorc-master/zsh.nanorc
    linking: nanorc-master/zshrc.nanorc  -> zsh.nanorc
finishing deferred symbolic links:
  nanorc-master/gitcommit.nanorc -> git.nanorc
  nanorc-master/html.j2.nanorc -> html.nanorc
  nanorc-master/twig.nanorc -> html.nanorc
  nanorc-master/zshrc.nanorc -> zsh.nanorc
 florin@Florins-MacBook-Pro  ~/Coding/NODE_JS_REST   master 
 florin@Florins-MacBook-Pro  ~/Coding/NODE_JS_REST   master  nano ~/.nanorc

Error in /Users/florin/.nano/asm.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/asm.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/awk.nanorc on line 2: Command "header" not understood

Error in /Users/florin/.nano/awk.nanorc on line 3: Command "magic" not understood

Error in /Users/florin/.nano/awk.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/c.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/c.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/cmake.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/coffeescript.nanorc on line 2: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/etc-hosts.nanorc on line 11: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Press Enter to continue starting nano.

Error in /Users/florin/.nano/fish.nanorc on line 4: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/fortran.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/gentoo.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/go.nanorc on line 2: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/groff.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/haskell.nanorc on line 2: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/html.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/html.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/html.j2.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/html.j2.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/ini.nanorc on line 2: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/jade.nanorc on line 45: Bad regex "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)": invalid repetition count(s)

Press Enter to continue starting nano.

Error in /Users/florin/.nano/java.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/java.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/javascript.nanorc on line 2: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/js.nanorc on line 16: Command "header" not understood

Error in /Users/florin/.nano/js.nanorc on line 17: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/json.nanorc on line 2: Command "header" not understood

Error in /Users/florin/.nano/json.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/lua.nanorc on line 16: Command "magic" not understood

Error in /Users/florin/.nano/lua.nanorc on line 17: Command "comment" not understood

Error in /Users/florin/.nano/lua.nanorc on line 19: Command "linter" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/makefile.nanorc on line 2: Command "header" not understood

Error in /Users/florin/.nano/makefile.nanorc on line 3: Command "magic" not understood

Error in /Users/florin/.nano/makefile.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/man.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/man.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/nanorc.nanorc on line 4: Command "comment" not understood

Error in /Users/florin/.nano/nanorc.nanorc on line 17: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /Users/florin/.nano/nanorc.nanorc on line 26: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /Users/florin/.nano/nanorc.nanorc on line 35: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Press Enter to continue starting nano.

Error in /Users/florin/.nano/nginx.nanorc on line 2: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/ocaml.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/ocaml.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/patch.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/patch.nanorc on line 6: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/perl.nanorc on line 4: Command "header" not understood

Error in /Users/florin/.nano/perl.nanorc on line 5: Command "magic" not understood

Error in /Users/florin/.nano/perl.nanorc on line 6: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/php.nanorc on line 3: Command "magic" not understood

Error in /Users/florin/.nano/php.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/po.nanorc on line 2: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/pov.nanorc on line 4: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/pug.nanorc on line 45: Bad regex "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)": invalid repetition count(s)

Press Enter to continue starting nano.

Error in /Users/florin/.nano/python.nanorc on line 4: Command "header" not understood

Error in /Users/florin/.nano/python.nanorc on line 5: Command "magic" not understood

Error in /Users/florin/.nano/python.nanorc on line 6: Command "comment" not understood

Error in /Users/florin/.nano/python.nanorc on line 8: Command "linter" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/ruby.nanorc on line 4: Command "header" not understood

Error in /Users/florin/.nano/ruby.nanorc on line 5: Command "magic" not understood

Error in /Users/florin/.nano/ruby.nanorc on line 6: Command "linter" not understood

Error in /Users/florin/.nano/ruby.nanorc on line 7: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/rust.nanorc on line 8: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/sed.nanorc on line 2: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/sh.nanorc on line 4: Command "header" not understood

Error in /Users/florin/.nano/sh.nanorc on line 5: Command "magic" not understood

Error in /Users/florin/.nano/sh.nanorc on line 6: Command "comment" not understood

Error in /Users/florin/.nano/sh.nanorc on line 8: Command "linter" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/systemd.nanorc on line 2: Command "header" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/tcl.nanorc on line 2: Command "header" not understood

Error in /Users/florin/.nano/tcl.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/tcl.nanorc on line 5: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/tex.nanorc on line 4: Command "magic" not understood

Error in /Users/florin/.nano/tex.nanorc on line 5: Command "comment" not understood

Error in /Users/florin/.nano/tex.nanorc on line 7: Command "linter" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/xml.nanorc on line 5: Command "header" not understood

Error in /Users/florin/.nano/xml.nanorc on line 6: Command "magic" not understood

Error in /Users/florin/.nano/xml.nanorc on line 7: Command "comment" not understood

Press Enter to continue starting nano.

Error in /Users/florin/.nano/yaml.nanorc on line 3: Command "header" not understood

Error in /Users/florin/.nano/yaml.nanorc on line 9: Bad regex "(^|\s+).*+\s*:(\s|$)": repetition-operator operand invalid

Press Enter to continue starting nano.

Error in /Users/florin/.nano/zsh.nanorc on line 3: Command "header" not understood

Press Enter to continue starting nano.
baditaflorin commented 4 years ago

Solved after installing nano from brew and creating an alias.

curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
brew install nano #Latest version at the time of this post was 5.3
alias nano='/usr/local/Cellar/nano/5.3/bin/nano --tabstospaces --linenumbers --tabsize 2'

https://gist.github.com/BlakeGardner/5587269#gistcomment-2113124

SuperSandro2000 commented 4 years ago

The ancient nano version osx still uses might work with the 2.9 branch.

dannytoomey commented 3 years ago

@baditaflorin I had the same problem and your fix worked for me! Thank you.

jdsampayo commented 3 years ago

@baditaflorin had the same issue on BigSur, now the directory of brew starts different:

alias nano='/opt/homebrew/Cellar/nano/5.8/bin/nano --tabstospaces --linenumbers --tabsize 2'