GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ymnao/dotfiles

BranchesTags
Open more actions menu

Latest commit

 

History

1,713 Commits
1,713 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github
.github
 
 
agents
agents
 
 
claude
claude
 
 
codex
codex
 
 
docs
docs
 
 
fish
fish
 
 
gh
gh
 
 
git
git
 
 
karabiner
karabiner
 
 
keyboard
keyboard
 
 
npm
npm
 
 
nvim
nvim
 
 
packages
packages
 
 
pnpm
pnpm
 
 
scripts
scripts
 
 
shell
shell
 
 
starship
starship
 
 
tests
tests
 
 
uv
uv
 
 
wezterm
wezterm
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.secretlintignore
.secretlintignore
 
 
.secretlintrc.json
.secretlintrc.json
 
 
Brewfile
Brewfile
 
 
CLAUDE.md
CLAUDE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
REVIEW.md
REVIEW.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 

Repository files navigation

dotfiles

個人用の開発環境設定ファイル(macOS / Linux / Windows対応)

セットアップ

macOS / Linux

# 開発ディレクトリにリポジトリをクローン
git clone https://github.com/YOUR_USERNAME/dotfiles.git ~/development/important/dotfiles
cd ~/development/important/dotfiles

# 自動セットアップ(Homebrew、パッケージインストール、シンボリックリンク作成)
make install

または手動で:

シンボリックリンクのみ作成:

make link

パッケージインストール(brew は sandbox 外で走るため、他のコマンドと同じ Bash 呼び出しに混ぜない。docs/ai-operations.md §10 参照):

brew bundle install

Windows

前提条件

  1. 開発者モードを有効化(シンボリックリンク作成に必要)

    • 設定 → システム → 開発者向け → 開発者モード
  2. PowerShellを管理者として実行(PATH設定、パッケージインストールに必要)

    • スタートメニューで「PowerShell」を検索 → 右クリック → 「管理者として実行」

インストール

# 1. リポジトリをクローン
git clone https://github.com/YOUR_USERNAME/dotfiles.git $env:USERPROFILE\development\important\dotfiles

# 2. 自動セットアップ(管理者PowerShellで実行)
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\development\important\dotfiles\scripts\install.ps1"

# Scoopも含める場合(CLIツール: lazygit, delta, fzf等)
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\development\important\dotfiles\scripts\install.ps1" -InstallScoop

手動セットアップ

cd $env:USERPROFILE\development\important\dotfiles

# 実行ポリシー設定(初回のみ)
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

# シンボリックリンクのみ作成
.\scripts\link.ps1

# パッケージインストール
# packages/winget-packages.txt を参照

含まれる設定

共通(全プラットフォーム)

  • WezTerm - ターミナルエミュレータ(Kanagawa/OneDarkテーマ、プラットフォーム対応キーバインド)
  • Neovim - エディタ(Lazy.nvimでプラグイン管理)
  • Git - バージョン管理(delta diff付き)
  • Claude Code - AI開発アシスタント(設定・スキル管理、運用方針は docs/ai-operations.md)
  • Codex CLI - AI開発アシスタント(設定・skills 共通化、運用方針は docs/ai-operations.md)

macOS

  • Fish - シェル
  • Karabiner-Elements - キーボードカスタマイズ

Windows

  • PowerShell - シェル(Fish風エイリアス50以上)
  • AutoHotkey - キーボードカスタマイズ(IME切り替え、HHKB風キーバインド)

ディレクトリ構成

dotfiles/
├── agents/         # AI エージェント共通設定(AGENTS.md、hook 正本)
├── claude/         # Claude Code 設定(settings/skills/agents/rules/statusline)
├── codex/          # Codex CLI 設定
├── docs/           # 運用ドキュメント(ai-operations.md、sandbox-git.md)
├── tests/          # 設定・hook の回帰テスト
├── fish/           # Fish設定(macOS/Linux)
├── git/            # Git設定
├── gh/             # GitHub CLI設定
├── npm/            # npm設定
├── pnpm/           # pnpm設定(供給網の防御)
├── uv/             # uv設定(供給網の防御)
├── karabiner/      # Karabiner設定(macOS)
├── nvim/           # Neovim設定
├── wezterm/        # WezTerm設定(プラットフォーム対応)
├── shell/          # PowerShell設定(Windows)
├── keyboard/       # AutoHotkey設定(Windows)
├── packages/       # パッケージ管理(Winget)
├── scripts/        # セットアップスクリプト
├── Brewfile        # Homebrewパッケージリスト
└── Makefile        # タスクランナー

よく使うコマンド

make help       # ヘルプ表示
make install    # フルインストール
make link       # シンボリックリンク作成
make update     # Homebrewパッケージ更新
make lint       # secretlint でシークレット漏洩チェック
make test       # 設定ファイル・hook の検証(フル)
make test-hooks # hook 回帰テストのみ
make gate       # Stop hook 用の高速ゲート
make clean      # 壊れたシンボリックリンクを削除

⚠️ セキュリティ注意事項

7-Zip / p7zipの使用禁止

全プラットフォームで7-Zip / p7zipの使用を禁止しています

理由: アーカイブ展開時のリモートコード実行脆弱性が過去に複数報告されています。 最新のセキュリティ情報は公式サイトで確認してください。

代替手段:

  • macOS: 標準のzip/unzip、または The Unarchiver
  • Windows: 標準のCompress-Archive/Expand-Archive
  • Linux: tar, unzip, gzip 等の標準ツール

個人情報の設定

Git の個人情報は 別ファイルで管理 してください:

# テンプレートをコピー
cp git/config.local.template ~/.config/git/config.local

# 自分の情報を記入
nvim ~/.config/git/config.local

追跡しないファイル

以下は自動的に除外されます(.gitignoreに記載):

  • *.local - 個人設定
  • .env, .env.* - 環境変数
  • .DS_Store - macOSメタデータ
  • automatic_backups/ - Karabinerバックアップ

カスタマイズ

マシン固有の設定は .local ファイルで:

~/.config/git/config.local           # Git個人情報
~/.config/fish/config.local.fish     # Fish個人設定

これらは自動で読み込まれ、Gitで追跡されません。

Windows固有の機能

IME切り替え(AutoHotkey)

macOSのKarabiner-Elements体験をWindowsで再現:

  • CapsLock → Ctrl: CapsLockをCtrlとして使用
  • Ctrl単体押し → IME英数: Ctrlを押して離すとIMEオフ
  • Ctrl + Space → IME全角: IMEオン(ひらがな)

WezTermキーマップ

操作 macOS Windows
ペイン水平分割 CMD+D CTRL+D
ペイン垂直分割 CMD+SHIFT+D CTRL+SHIFT+D
新規タブ CMD+T CTRL+T
ペイン移動 CMD+h/j/k/l ALT+h/j/k/l

PowerShell Fish風エイリアス

50以上のGitエイリアス:gs, ga, gc, gp, gl, gco, gb, gd等

詳細: shell/README.md

パッケージ管理(Winget + Scoop)

用途 マネージャー 例
GUIアプリ Winget VS Code, WezTerm
言語ランタイム Winget Python, Node.js, Go
CLI開発ツール Scoop lazygit, delta, fzf

セキュリティ: Scoopは公式バケット(main, extras)のみ使用

詳細: packages/README.md

参考

  • dotfiles.github.io
  • awesome-dotfiles

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.