diff --git a/docs/cheatsheet.md b/docs/cheatsheet.md index 3188a49..39c371a 100644 --- a/docs/cheatsheet.md +++ b/docs/cheatsheet.md @@ -73,3 +73,26 @@ httrack "https://example.com" -O ./out "+*.example.com/*" - nixos options: `monolith https://search.nixos.org/options -o options.html` - сохранить доки: `wget -r -p -k nix-darwin.github.io/nix-darwin/manual/` - monolith и httrack ставятся через `brew install monolith httrack` + +## default apps (duti) + +настраиваются через `~/.config/duti/config` (управляется в `home/duti.nix`): +- `com.google.Chrome` — html, url +- `VSCodium` — txt (см. ⚠️ ниже) +- `MarkEdit` — markdown +- `kitty` — shell scripts +- `com.apple.Preview` — pdf +- `com.apple.Mail` — mail + +проверить текущие defaults: +```bash +duti -x html +duti -x md +duti -x txt +``` + +⚠️ **для `.txt` файлов** на macOS Sonoma+ Apple блокирует настройку через CLI. +настроить вручную: +1. правый клик на .txt файл → **Get Info** +2. раздел **"Open with:"** → выбрать **VSCodium** +3. нажать **"Change All..."** → подтвердить