GitHub 文件类型推断错误
- linguist/docs/overrides.md at main · github-linguist/linguist
- 設定 GitHub 上顯示的程式語言狀態 — Jimmy Lin’s Blog
| Git attribute | Effect on file |
|---|---|
linguist-detectable | Included in stats, even if language’s type is data or prose |
linguist-documentation | Excluded from stats |
linguist-generated | Excluded from stats, hidden in diffs |
linguist-language=name | Highlighted and classified as name |
linguist-vendored | Excluded from stats |
vim: syntax=java
vim: set syntax=ruby:
vim: set filetype=prolog:
vim: set ft=cpp:改了之后本地验证
gem install github-linguist如果在 MSYS2 因为 ICU / Charlock_Holmes 相关依赖安装失败,尝试手动指定依赖位置。
- windows - Charlock_holmes 0.7.6 install errors - Stack Overflow
- Installing Charlock_Holmes gem in Windows – FDF Dev (English)
ridk exec pacman -S mingw-w64-x86_64-icu6
gem install github-linguist -- --with-icui18nlib=icuin --with-icudatalib=icudtridk 是 Ruby Installer
Windows Terminal MSYS2 退出不关闭窗口
enihsyou@enihsyou-PC UCRT64 ~
$
注销
[已退出进程,代码为 0 (0x00000000)]
现在可以使用Ctrl+D关闭此终端,或按 Enter 重新启动。修改退出行为为「仅在进程成功退出时关闭」
{
"closeOnExit": "graceful",
"commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64",
"guid": "{a718a3d5-9e77-4d0d-b7b6-69ec3d190206}",
"hidden": false,
"icon": "C:/msys64/ucrt64.ico",
"name": "MSYS2: ucrt64",
"pathTranslationStyle": "msys2",
"startingDirectory": "%USERPROFILE%"
},估计原因是命令行为 cmd 文件,识别错了