https://github.com/adamchristiansen/plecostomus
A command history filter for the fish shell
https://github.com/adamchristiansen/plecostomus
command-history fish fish-plugin fisher shell-history
Last synced: 4 months ago
JSON representation
A command history filter for the fish shell
- Host: GitHub
- URL: https://github.com/adamchristiansen/plecostomus
- Owner: adamchristiansen
- License: mit
- Created: 2022-10-23T18:57:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T20:48:48.000Z (over 2 years ago)
- Last Synced: 2024-12-30T10:43:48.672Z (5 months ago)
- Topics: command-history, fish, fish-plugin, fisher, shell-history
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plecostomus
A simple command history filter for the
[fish shell](https://github.com/fish-shell/fish-shell).## Features
- Use regex filters to prevent commands from being saved in the command
history.
- Out of the box, commands that begin with one or more spaces are ignored.
- That's it - nothing else!## Requirements
* [fish](https://github.com/fish-shell/fish-shell) (3.0.0 or higher)
## Installation
### Using [Fisher](https://github.com/jorgebucaran/fisher)
```sh
fisher install adamchristiansen/plecostomus
```## Configuration
Filters can be added by modifying the `plecostomus_regex_patterns` universal
variable, which is an array of regex patterns to ignore. By default it is```sh
set -U plecostomus_regex_patterns '^ +'
```## Alternatives
This plugin is simple by design, and supports only regex filtering. It is
simple and fast. If more features are needed, consider using:- [Sponge](https://github.com/meaningful-ooo/sponge)