Skip to content

Comparison with Alternatives

Feature Comparison

Featureproj-trackhistory | grepCustom DEBUG trapPer-dir HISTFILE
Auto-captureYesNoYesYes
Per-project isolationYesNoVariesYes
Zero terminal interferenceYesN/ANoYes
Noise filteringYesNoNoNo
Sensitive data filteringYesNoNoNo
DeduplicationYesNoNoNo
Instant replay by IDYesNoNoNo
Pause/resumeYesNoNoNo
Export to plain textYesNoNoNo
Bash + ZshYesBash onlyVariesVaries
No config neededYesN/ANoNo

history | grep (Built-in)

Pros: Always available, no installation needed.

Cons: Global history mixes commands from every directory. No filtering. No per-project isolation. Must manually search with grep. No replay functionality.

Custom DEBUG trap scripts

Pros: Can auto-capture commands.

Cons: The DEBUG trap fires on every keystroke and expansion, which breaks arrow keys in VS Code Terminal. Background logging often produces [1]+ Done messages. Can interfere with Ctrl+C signal handling.

proj-track avoids all of these issues by using PROMPT_COMMAND (bash) and preexec (zsh) instead of the DEBUG trap.

Per-directory HISTFILE

Pros: Built-in shell feature, per-directory history.

Cons: Requires complex HISTFILE manipulation in shell config. No filtering of noise or sensitive commands. No deduplication. No replay. Switching between directories changes your entire history context.

proj-track's Approach

proj-track combines the best of all approaches:

  • Auto-capture like DEBUG trap scripts — but without the terminal interference
  • Per-project isolation like per-dir HISTFILE — but with smart filtering and replay
  • Zero config — just proj-track init and you're done

Released under the MIT License.