From 5064f912a466f03e70f01be824fd43c3aab00073 Mon Sep 17 00:00:00 2001 From: disqualifier Date: Fri, 26 Jun 2026 01:50:18 -0400 Subject: [PATCH] fix: install.sh installs config.toml to ~/.config/claudedo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the daemon's config lookup falls through to ./config.toml only, so without a copy in the standard dir it was repo-cwd-only. install config.toml to ~/.config/claudedo/ — copy if absent, else write config.toml.new beside the user's edited copy (never clobber). also gitignore COMPACT.md (handoff doc kept on disk, untracked). Signed-off-by: disqualifier --- .gitignore | 1 + install.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 5a3a9be..1318cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ CLAUDE.md +COMPACT.md __pycache__/ *.pyc diff --git a/install.sh b/install.sh index 3af2b6f..01eccd4 100755 --- a/install.sh +++ b/install.sh @@ -94,6 +94,18 @@ mkdir -p "$CONF_DIR" install -m 0644 "$REPO_DIR/shell/cc.sh" "$CONF_DIR/cc.sh" echo " wrote $CONF_DIR/cc.sh" +# install config.toml to the standard location so the daemon finds it from any dir. +# never clobber an edited user config: copy only if absent, else drop a .new to diff. +if [ ! -f "$CONF_DIR/config.toml" ]; then + install -m 0644 "$REPO_DIR/config.toml" "$CONF_DIR/config.toml" + echo " wrote $CONF_DIR/config.toml" +elif ! cmp -s "$REPO_DIR/config.toml" "$CONF_DIR/config.toml"; then + install -m 0644 "$REPO_DIR/config.toml" "$CONF_DIR/config.toml.new" + echo " kept your $CONF_DIR/config.toml; new default written to config.toml.new (diff to merge)" +else + echo " $CONF_DIR/config.toml already current" +fi + # wire EVERY rc that exists (the user may have both zsh and bash). wired_any=0 for RC in "$HOME/.zshrc" "$HOME/.bashrc"; do