dotfiles/private_dot_config
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
..
atuin Small combined changes 2026-07-27 20:23:32 +03:00
bat default theme for bat 2024-05-17 23:22:43 +03:00
helix force true color in helix 2024-09-01 00:09:40 +03:00
kitty fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
nvim clipboard fixes for tmux and nvim 2026-04-09 02:21:29 +03:00
private_fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
private_karabiner/private_assets/private_complex_modifications restructure repo, fix fish config, remove vendored repos 2026-03-02 19:11:10 +03:00
scripts Modernize Neovim treesitter bootstrap 2026-03-31 01:45:02 +03:00
wezterm kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
karabiner.edn Preserve local Karabiner and Pi preferences 2026-07-27 22:33:34 +03:00