Skip to content

mdhvg/oops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

oOPS

Accidentally typed something confidential into the terminal?

Meme

Usage

In a scenario where you type something you didn't wanna save in the shell history.

Just removing the last line

> export TOKEN="__REDACTED__"
> oops

Removing multiple lines

> export TOKEN="I"
> export TOKEN="keep"
> export TOKEN="leaking"
> export TOKEN="SECRETS"
> oops 4

Installation

Clone this repo:

git clone https://github.com/mdhvg/oops
cd oops

Install

make install

Installing in a custom directory

make install PREFIX="/path/to/custom/dir"

Uninstall

Just run

make uninstall

Or in case of custom path

make uninstall PREFIX="/path/to/install/dir"

Currently supported shells

  • Zsh

Feel free to make a PR for your preferred terminal :)

About

CLI utility to remove last n commands from current shell history

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published