git clone https://github.com/YMD7/dotfiles.git ~/Dev/dotfiles
cd ~/Dev/dotfilesbash setup.sh以下が自動で行われる:
- Homebrew のインストール(未導入の場合)
brew bundleで依存パッケージをインストール- シンボリックリンクの一括作成
- mise によるランタイム(Node.js, Python, Ruby)のインストール
- Copilot.vim のクローン(未導入の場合)
リンク元 (~/...) |
リンク先 (dotfiles/...) |
|---|---|
~/.zshenv |
.zshenv |
~/.zshrc |
.zshrc |
~/.tmux.conf |
.tmux.conf |
~/.gitconfig |
.gitconfig |
~/.config/ghostty/ |
.config/ghostty/ |
~/.config/aerospace/ |
.config/aerospace/ |
~/.config/yazi/ |
.config/yazi/ |
~/.config/sheldon/ |
.config/sheldon/ |
~/.config/starship/ |
.config/starship/ |
~/.config/wezterm/ |
.config/wezterm/ |
~/.config/nvim/ |
.config/nvim/ |
~/.config/zed/ |
.config/zed/ |
~/.config/mise/ |
.config/mise/ |
~/.claude/skills/ |
.claude/skills/ |
~/.claude/settings.json |
.claude/settings.json |
~/.claude/statusline.sh |
.claude/statusline.sh |
~/.local/bin/tmux-ai-title |
bin/tmux-ai-title |
setup-remote-dev.sh でサービス登録まで自動化されるが、初回はトンネルの作成と Cloudflare Access の設定が必要。
# Cloudflare 認証(ブラウザが開く)
cloudflared tunnel login
# トンネル作成
cloudflared tunnel create <トンネル名>
# DNS レコード設定
cloudflared tunnel route dns <トンネル名> ssh.<ドメイン名>~/.cloudflared/config.yml:
tunnel: <トンネルID>
credentials-file: ~/.cloudflared/<トンネルID>.json
ingress:
- hostname: ssh.<ドメイン名>
service: ssh://localhost:22
- service: http_status:404https://one.dash.cloudflare.com で以下を設定:
- 認証プロバイダ追加: Settings > Authentication > Login methods > Google
- アプリケーション作成: Access > Applications > Add > Self-hosted
- Domain:
ssh.<ドメイン名> - Policy: Allow / Emails で自分のメールアドレスのみ許可
- Browser rendering: SSH
- Domain:
設定後、ブラウザで https://ssh.<ドメイン名> にアクセスすると、Google 認証を経てブラウザ上で SSH ターミナルが使える。
tmux のステータスライン右側に、現在の作業内容を AI が自動生成したタイトルとして表示する。
- 仕組み: 3分おきにバックグラウンドで
claudeCLI (haiku) を呼び出し、ターミナルのコンテキスト(cwd、git 情報、画面内容、シェル履歴)からタイトルを生成 - キャッシュ:
~/.cache/tmux-ai-title/<セッション名>にセッションごとに保存。ステータスライン表示時はキャッシュ読みのみなので遅延なし - 前提:
claudeCLI がインストールされていること