Skip to content

Lexographics/typo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typo

A terminal UI for removing commands from your shell history. Supports bash, zsh, and fish. Detects the active shell from $SHELL, reads the corresponding history file, and writes it back after you confirm deletions.

Install

go install github.com/Lexographics/typo@latest

Or build from source:

git clone https://github.com/Lexographics/typo.git
cd typo
go build -o typo .

Add the binary to your PATH

Usage

typo

Launches an interactive picker over your history. Use the filter field to search.

Key Action
↑ / ↓ Move selection
Tab Toggle selection on the current line
Enter Delete selected entries and exit
Esc Exit without changes

Default mode

Shows each distinct command once, ordered from most recent. Deleting a command removes all occurrences of it from the history file.

Single-entry mode

typo --single

Lists every history entry individually. Zsh and fish entries include a timestamp prefix when available. Use this when you want to remove specific runs without deleting every occurrence of the same command.

Notes

  • Changes are written directly to your history file. There is no undo.
  • Avoid running typo while another shell session is writing to the same history file.
  • Fish history uses a structured format; zsh uses extended timestamp lines. typo preserves the on-disk format expected by each shell.
  • Requires $SHELL to point at a supported shell. Other shells are rejected with an error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages