Sync.env between config dirs | Generated by AI
Done. Here’s the full summary:
Changes
New file: ww/sync/ww.py
sync_ww_env(direction="forth")— copies.envbetween~/.config/ww/.envand$CONFIG_DIR/ww/.envforth(default): canonical → config dirback: config dir → canonical- Uses
shutil.copy2to preserve metadata, creates parent dirs if needed - Prints a confirmation line on success
Modified: ww/main.py
- Added
ww sync wwhandler in the sync dispatch block (same pattern as bashrc/zprofile —directionparam withforthdefault) - Added help text to both the main help page and the sync subcommand help
Modified: ~/.zsh/completions/_ww
- Added
'ww:Sync .env to/from CONFIG_DIR'to thesync_cmdsarray - Run
autoload -Uz compinit && compinitin your zsh to pick it up