A fish shell plugin that automatically cleans your command history by filtering out typos, failed commands, and unwanted entries.
Sponge is a fish shell plugin that automatically cleans your command history by filtering out typos, failed commands, and unwanted entries. It runs in the background to ensure your history remains relevant and clutter-free, solving the problem of searching through outdated or incorrect commands.
Fish shell users who want a cleaner command history, particularly developers and power users who frequently use the terminal and value productivity and privacy.
Developers choose Sponge for its seamless automation and customization; it works out-of-the-box to filter common issues like typos, while offering advanced features like regex filtering and custom functions for tailored control over history management.
🧽 Clean fish history from typos automatically
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Removes typos and errors by default based on exit codes, as shown in the 'Filter failed' section with configurable successful codes like 0 or 127.
Supports privacy by filtering commands matching patterns like IP addresses using the sponge_regex_patterns variable, offering granular control.
Allows access to recent entries via sponge_delay settings, balancing immediate cleanup with usability for fixing mistakes.
Enables user-defined synchronous filters for advanced logic, as demonstrated in the custom filters section with function registration.
Requires manual history clear after installation to remove existing clutter, as explicitly stated in the README, limiting immediate cleanup.
Only compatible with fish shell 3.2+, making it useless for users in mixed-shell environments or those on bash/zsh.
Custom filters run synchronously after each command and can slow down the prompt, as warned in the documentation for compute-intensive tasks.