Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/mise/config.toml → .config/mise/global.toml
Original file line number Diff line number Diff line change
@@ -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 する。

Expand Down
4 changes: 3 additions & 1 deletion copy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 に分離)
Expand Down Expand Up @@ -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` で未導入の版の自動ダウンロードを止める。
Expand Down
Loading