SLOPSHOPPER

ntfy-notify

メインループのターン完了を notify.sh 経由で ntfy.sh へプッシュ通知する

newprocess
★ 1v0.1.0no licenseupdated 2026-09-21void2610/dotfiles/.claude/mods/ntfy-notify
A shopper browsing a rack in a slop shop
README

dotfiles

個人用のdotfiles設定リポジトリです。 パッケージ管理と Homebrew 管理は別の nix-config リポジトリで行い、このリポジトリは主にシェルやアプリ設定を管理します。

セットアップ手順

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

git clone https://github.com/yourusername/dotfiles.git ~/dotfiles
cd ~/dotfiles

2. Nix / nix-darwin 設定の適用

cd ~/nix-config
darwin-rebuild switch --flake .#<nix-configで定義したホスト名>

3. dotfilesのシンボリックリンク作成

./install.sh

既存の設定ファイルは~/backupディレクトリにバックアップされます。

ファイル構成

  • install.sh: dotfilesのシンボリックリンク作成スクリプト
  • MANUAL_APPS.md: 手動インストールが必要なアプリケーション一覧
  • .config/: 各種アプリケーションの設定ファイル
  • .zshrc: Zshシェルの設定
  • .gitconfig: Git設定
  • .tmux.conf: tmux設定
  • .claude/: Claude Code の設定
  • .codex/: Codex の設定
Source 1 files
hooks/index.ts 20 lines
1import type { Register } from "claude-code";
2
3export const register: Register = (on) => {
4  on("turn.complete", async ($, e, next) => {
5    // サブエージェントと中断は通知しない (旧 Stop hook 相当はメインループの完了のみ)
6    if (!e.agentId && !e.isAborted) {
7      const home = await $.env.get("HOME");
8      if (home) {
9        await $.process.run([
10          "bash",
11          `${home}/.claude/notify.sh`,
12          "Stop",
13          "success",
14        ]);
15      }
16    }
17    return next(e);
18  });
19};
20