Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add EternalHist Plugin - Advanced Persistent Command History with Multi-Remote Sync
Standards checklist:
Changes:
New Plugin: EternalHist
plugins/eternalhist/
eternalhist.plugin.zsh
- Main plugin implementationREADME.md
- Comprehensive documentationCore Features
eternalhist <terms>
searches without requiring explicitsearch
command\command
to search for command names that conflict with plugin commandsht()
function for existing workflowsCommands Provided
eternalhist [search_terms...]
- Search eternal history (default behavior)eternalhist add [command]
- Add command to eternal historyeternalhist show [limit]
- Display recent eternal historyeternalhist stats
- Show usage statisticseternalhist sync [remote...]
- Synchronize with configured remoteseternalhist remotes list/test
- Manage remote configurationseternalhist config
- Show current configurationeternalhist clear
- Clear all eternal history (with confirmation)ht [search_terms...]
- Backward compatibility aliasEnvironment Variable Configuration
ETERNALHIST_REMOTES="primary,backup"
ETERNALHIST_<REMOTE>_PROVIDER
,ETERNALHIST_<REMOTE>_PATH
, etc.Provider Support
Use Cases:
For Individual Users
For Teams and Organizations
Specific Examples
Other comments:
Design Philosophy
This plugin extends the concept of shell history beyond the limitations of built-in history mechanisms. While standard shell history is often limited by size, session boundaries, and single-machine scope, EternalHist provides unlimited, persistent, and distributed command history management.
Compatibility
Performance Considerations
Future Extensibility
The plugin architecture supports easy addition of:
Security Notes