MCPcopy Index your code
hub / github.com/curusarn/resh

github.com/curusarn/resh @v3.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.2 ↗ · + Follow
233 symbols 735 edges 63 files 80 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Latest version Go Report Card Go test Shell test

RESH

Context-based replacement for zsh and bash shell history.

Full-text search your shell history.
Relevant results are displayed first based on current directory, git repo, and exit status.

Install

Install RESH with one command:

curl -fsSL https://raw.githubusercontent.com/curusarn/resh/master/scripts/rawinstall.sh | bash

ℹ️ You will need to have bash, curl, and tar installed.

More options on Installation page ⇗

Search your history

Press Ctrl + R to search:

RESH search app screenshot

In-app key bindings

  • Type to search
  • Up / Down or Ctrl + P / Ctrl + N to select results
  • Enter to execute selected command
  • Right to paste selected command onto the command line so you can edit it before execution
  • Ctrl + C or Ctrl + D to quit
  • Ctrl + G to abort and paste the current query onto the command line
  • Ctrl + R to search without context (toggle)

Issues & ideas

Find help on Troubleshooting page ⇗

Problem persists? Create an issue ⇗

Core symbols most depended-on inside this repo

Error
called by 58
internal/output/output.go
FatalE
called by 36
internal/output/output.go
Info
called by 22
internal/output/output.go
leftCutPadString
called by 14
internal/searchapp/item.go
rightCutLeftPadString
called by 13
internal/searchapp/item.go
rightCutPadString
called by 13
internal/searchapp/item.go
InfoE
called by 11
internal/output/output.go
FileExists
called by 9
internal/futil/futil.go

Shape

Function 138
Method 61
Struct 34

Languages

Go100%

Modules by API surface

cmd/cli/main.go22 symbols
internal/searchapp/item.go20 symbols
internal/output/output.go16 symbols
internal/searchapp/highlight.go13 symbols
internal/histfile/histfile.go10 symbols
internal/futil/futil.go8 symbols
internal/device/device.go8 symbols
internal/cfg/cfg.go8 symbols
internal/check/check.go6 symbols
cmd/install-utils/migrate.go6 symbols
cmd/control/cmd/doctor.go6 symbols
internal/searchapp/time.go5 symbols

For agents

$ claude mcp add resh \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact