nano - Windows 下 GIT 中/etc/nanorc 报错,没有/usr/share/nano

标签 nano

我在带有 GIT-bash 的 Windows 终端中使用 nano 时遇到了这个错误。

$ nano .bashrc
Error in /etc/nanorc on line 237: Error expanding /usr/share/nano/*.nanorc: No such file or directory

最佳答案

得到我的答案 here ,我将复制粘贴到这里以防内容丢失:

$ git clone https://github.com/serialhex/nano-highlight
$ cd nano-highlight
$ cp * /usr/share/nano

关于nano - Windows 下 GIT 中/etc/nanorc 报错,没有/usr/share/nano,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68889332/

相关文章:

linux - 是否有在 nano 的搜索行中粘贴值的快捷方式?

linux - 将 Ctrl + <arrow-key> 设置为 nano 中的快捷方式

linux - 找不到 GNU nano 全局配置

file - 防止 nano 在收到 SIGHUP 或 SIGTERM 时创建保存文件

python - 令人讨厌的Python语法错误

mysql - 无法在 MySQL 8.0 的 my.cnf 中找到绑定(bind)地址

linux - Nano - 禁用保存确认?

linux - 如何清除 NANO-Editor 的屏幕,打开一个新的文本文件?

linux - Bash 脚本中的版权和英镑符号

search - 使用 sighup 或 sigterm 将文件直接传递给 nano 失败