Skip to content

YMD7/dotfiles

Repository files navigation

dotfiles

セットアップ

1. リポジトリをクローン

git clone https://github.com/YMD7/dotfiles.git ~/Dev/dotfiles
cd ~/Dev/dotfiles

2. セットアップスクリプトを実行

bash setup.sh

以下が自動で行われる:

  1. Homebrew のインストール(未導入の場合)
  2. brew bundle で依存パッケージをインストール
  3. シンボリックリンクの一括作成
  4. mise によるランタイム(Node.js, Python, Ruby)のインストール
  5. 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

Cloudflare Tunnel(リモートアクセス)

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:404

Cloudflare Access 設定(Zero Trust ダッシュボード)

https://one.dash.cloudflare.com で以下を設定:

  1. 認証プロバイダ追加: Settings > Authentication > Login methods > Google
  2. アプリケーション作成: Access > Applications > Add > Self-hosted
    • Domain: ssh.<ドメイン名>
    • Policy: Allow / Emails で自分のメールアドレスのみ許可
    • Browser rendering: SSH

設定後、ブラウザで https://ssh.<ドメイン名> にアクセスすると、Google 認証を経てブラウザ上で SSH ターミナルが使える。

tmux AI タイトル

tmux のステータスライン右側に、現在の作業内容を AI が自動生成したタイトルとして表示する。

  • 仕組み: 3分おきにバックグラウンドで claude CLI (haiku) を呼び出し、ターミナルのコンテキスト(cwd、git 情報、画面内容、シェル履歴)からタイトルを生成
  • キャッシュ: ~/.cache/tmux-ai-title/<セッション名> にセッションごとに保存。ステータスライン表示時はキャッシュ読みのみなので遅延なし
  • 前提: claude CLI がインストールされていること

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors