๐Ÿ“ฆ gentritbiba / history-context

๐Ÿ“„ install.sh ยท 32 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32#!/bin/bash

# history-context plugin installer

set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

echo "Installing history-context plugin..."

# Copy CLI tool
echo "Copying CLI tool to ~/.claude/commands/"
cp "$SCRIPT_DIR/cli/claude-history.py" ~/.claude/commands/
chmod +x ~/.claude/commands/claude-history.py

# Build initial index
echo "Building file-history index..."
~/.claude/commands/claude-history.py index --rebuild

echo ""
echo "CLI tool installed successfully!"
echo ""
echo "To complete installation, run in Claude Code:"
echo ""
echo "  claude plugins add-marketplace $SCRIPT_DIR/.claude-plugin/marketplace.json"
echo "  claude plugins install history-context"
echo ""
echo "Or install directly from the directory:"
echo ""
echo "  claude plugins install --path $SCRIPT_DIR"
echo ""