dotfiles-session-notes
Repo-specific operational notes for /Users/kobas-mac/srcview/dotfiles. Use when working on zsh history ignorePatterns behavior, or when applying the user preference to beep on completion.
SKILL.md.codex/skills/dotfiles-session-notes/SKILL.md
GitHubDotfiles Session Notes
Overview
Capture session-specific behavior and preferences for this dotfiles repo so changes remain consistent and user expectations are met.
Date Tags
- Use one lightweight date tag per workday, formatted
YYYY.MM.DD, pointing at the final commit from that day's batch. - Interpret workdays and calendar-day boundaries in the
Asia/Tokyotimezone. - Do not create a date tag on the same calendar day as the commits it would tag.
- Create a date tag only after the next calendar day has started.
- Before creating tags, list the exact tag names and commit hashes, then ask the user for confirmation.
Zsh History Ignore Patterns
- Prefer
programs.zsh.history.ignorePatternsfor the pattern list inhome/zsh/default.nix. HISTORY_IGNOREonly filters when writing the history file; to prevent entries from being added at all, define azshaddhistoryhook.- Ensure extended globbing is enabled (
setopt EXTENDED_GLOB) and use[[ $1 != ${~HISTORY_IGNORE} ]]inside the hook. - The patterns use extended glob syntax like
ls#( *)#, so keepsetopt extendedglobwithin the hook as well. - To disable extended globbing in the current shell session, run
unsetopt EXTENDED_GLOB. - In Nix multi-line strings (like
initContent), escape zsh variables as''${VAR}to avoid Nix interpolation, e.g.''${HISTORY_IGNORE:-}. zshaddhistoryreceives the command line with a trailing newline; strip it (e.g.local line=''${1%%$'\n'}) before matching ignore patterns.- If ignored commands still show on Up/Down, clear in-memory history with
history -cthen reload withfc -R.
EC2 Home Manager Profile
flake.nixdefineshomeConfigurations.ec2for EC2 usingx86_64-linuxand modules[ ./ec2/ec2.nix ].nix run .#home-manageron EC2 requiresapps.x86_64-linux.home-manager(and/or packages) to be exported; addpackages.${ec2System}.home-managerandapps.${ec2System}.home-manageralongside the Darwin outputs inflake.nix.ec2/ec2.nixinstallscodex,git,ripgrep,termux, plus existing tools.nix flake checkmay fail without access to the Nix cache; rerun with escalated permissions if the cache DB can't be opened.