From 485ebdfae989a759eac5ecd62e5ec1659e252f99 Mon Sep 17 00:00:00 2001 From: Yuichi Uemura Date: Tue, 13 Oct 2026 22:58:43 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20mise=20=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=81=AE=20repo=20=E5=81=B4=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E5=90=8D=E3=82=92=20global.toml=20=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E3=81=88=E3=80=81checkout=20=E5=86=85=20shell=20=E3=81=AE=20un?= =?UTF-8?q?trusted=20=E8=AD=A6=E5=91=8A=E3=82=92=E6=AD=A2=E3=82=81?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mise は cwd 以下の .config/mise/config.toml を project 設定として読むため、 この repo の checkout や worktree で shell を開くたびに 「config.toml is not trusted, run `mise trust`」が出ていた。 repo 側だけ .config/mise/global.toml に改名し、copy.conf でコピー先 ~/.config/mise/config.toml に変換する。設定値は変えない。 - .config/mise/config.toml → .config/mise/global.toml (git mv、先頭コメントに理由を追記) - copy.conf: 元 path を global.toml に変更 - docs/architecture.md: ツリー表記と mise の節を更新 確認: - repo 外の test dir で、global.toml は mise config ls に検出されないことを実測 - worktree で mise config ls が ~/.config/mise/config.toml だけを返し、 fish -l -i -c true で警告が出ないことを確認 - ./lint.sh の TOML 検査は通過。tmux isolated tests の 1 件は main でも出る既存エラー Co-Authored-By: Claude Fable 5.1 --- .config/mise/{config.toml => global.toml} | 2 ++ copy.conf | 4 +++- docs/architecture.md | 6 ++++-- 3 files changed, 9 insertions(+), 3 deletions(-) rename .config/mise/{config.toml => global.toml} (76%) diff --git a/.config/mise/config.toml b/.config/mise/global.toml similarity index 76% rename from .config/mise/config.toml rename to .config/mise/global.toml index e9f09ca..faf50f0 100644 --- a/.config/mise/config.toml +++ b/.config/mise/global.toml @@ -1,4 +1,6 @@ # mise のグローバル設定 (コピー先: ~/.config/mise/config.toml) +# repo 側のファイル名を config.toml にすると、この repo の checkout 内で mise が project 設定として拾い +# 「is not trusted」警告を出すため、global.toml の名前で置く。 # Node.js の版は Nodefile で導入し、プロジェクトの .node-version / .nvmrc で切り替える。 # [tools] は置かない。版指定の無い場所では shims が PATH 上の次の node (Homebrew) へ fallback する。 diff --git a/copy.conf b/copy.conf index a629c27..4f229f3 100644 --- a/copy.conf +++ b/copy.conf @@ -26,7 +26,9 @@ .config/git/config : $HOME/.gitconfig # Node.js の版管理 (mise) と package managers -.config/mise/config.toml : $HOME/.config/mise/config.toml +# mise は cwd 以下の .config/mise/config.toml を project 設定として拾い、untrusted 警告を出すため、 +# repo 側は global.toml の名前で置き、コピー先で config.toml にする +.config/mise/global.toml : $HOME/.config/mise/config.toml .config/npm/npmrc : $HOME/.npmrc .config/pnpm/rc : $HOME/Library/Preferences/pnpm/rc diff --git a/docs/architecture.md b/docs/architecture.md index 43ed606..d94be81 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -41,7 +41,7 @@ │ │ ├── fish_plugins # Fisher プラグイン一覧 │ │ ├── completions/ # 補完定義 (gcloud, gsutil) │ │ └── functions/ # カスタム関数 (claude/codex/ai-panes/sidebar 等、テーマ系は .gitignore) -│ ├── mise/config.toml # mise のグローバル設定 (.node-version / .nvmrc の読み取り、自動導入の無効化) +│ ├── mise/global.toml # mise のグローバル設定 (.node-version / .nvmrc の読み取り、自動導入の無効化) │ ├── zsh/{zshenv,zprofile} # zsh 起動時の Homebrew PATH 優先設定 │ ├── bash/bash_profile # bash login shell の Homebrew PATH 優先設定 │ ├── git/config # Git 設定 (共通、個人情報は config.local に分離) @@ -201,7 +201,9 @@ ffmpeg / bun) を明示し、`Nodefile`、`Npmfile`、`Pythonfile` は各 lib/ (`22` は導入済みの 22.x) に解決され、版ファイルのない場所では shims が PATH 上の次の `node` (Homebrew の `node`) へ fallback する。 -mise の設定は `.config/mise/config.toml` (コピー先 `~/.config/mise/config.toml`) に置く。 +mise の設定は `.config/mise/global.toml` (コピー先 `~/.config/mise/config.toml`) に置く。 +repo 側を `config.toml` の名前にすると、checkout や worktree の中で開いた shell で mise が +それを project 設定として検出し「is not trusted」警告を出すため、repo 側だけ名前を変えている。 mise は `.node-version` などの言語固有の版ファイルを既定では読み込まないため、 `idiomatic_version_file_enable_tools = ["node"]` で node だけ有効にし、 `not_found_auto_install = false` で未導入の版の自動ダウンロードを止める。