dotfiles/private_dot_config/kitty
Anton Volnuhin a84778a640 fix(kitty): read file permissions correctly where stat is GNU
`chezmoi apply` on Linux printed "could not regenerate kitty theme
files" every run. GNU stat reads -f as --file-system, so
`stat -f '%Lp' file` prints a block of filesystem info to stdout and
exits non-zero. The `|| stat -c '%a'` fallback then appended the real
answer to that block, and chmod rejected the result, failing the script
under set -e.

Replace the chain with a file_mode() helper in both scripts: try the GNU
form first, since BSD rejects -c cleanly without printing anything, and
accept the answer only if it is octal. Covered by a new case in
tests/test_theme_mode.sh using a stat stub that reproduces GNU's
behaviour; it fails against the old chain.
2026-08-06 02:39:49 +03:00
..
private_tests fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
themes kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
kitty.app.icns dark kitten icon for kitty 2026-04-06 14:46:04 +03:00
kitty.conf tab strategy + font size 15 2026-07-28 17:17:48 +03:00
private_current-theme.conf Initial commit 2023-04-30 01:21:51 +03:00
private_executable_apply-theme-mode.sh fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
private_executable_repair-auto-themes.sh fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
symlink_theme.conf.tmpl template symlinks for portability, remove karabiner debug rule 2026-03-02 19:25:40 +03:00
tab_bar.py fix(kitty): restore per-host tab colors in the custom tab bar 2026-08-06 01:31:40 +03:00