Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminya/warp-history
Allow warp to search through all command history. Supports mcfly history
https://github.com/aminya/warp-history
bash history mcfly terminal warp warp-terminal
Last synced: 5 days ago
JSON representation
Allow warp to search through all command history. Supports mcfly history
- Host: GitHub
- URL: https://github.com/aminya/warp-history
- Owner: aminya
- License: mit
- Created: 2024-08-20T04:55:48.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T05:44:39.000Z (about 1 month ago)
- Last Synced: 2025-01-01T02:28:54.429Z (8 days ago)
- Topics: bash, history, mcfly, terminal, warp, warp-terminal
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Warp and McFly History to Shell History
This tool extracts command history from Warp and McFly and writes it to your shell's history file (either Bash or Zsh).
This allows you to have a unified command history across all your terminals and shell sessions.
It also fixes [the issue](https://github.com/cantino/mcfly/issues/435) where Warp is not able to search through the whole command history.
## Features
- Extracts command history from Warp terminal.
- Extracts command history from McFly.
- Writes the combined history to the specified shell history file.
- Backs up the existing shell history file before writing.## Requirements
- Python 3.x
- Warp terminal with history stored in `~/.local/state/warp-terminal/warp.sqlite`
- McFly installed and available in the system PATH## Installation
1. Clone the repository:
```sh
git clone
cd
```## Usage
Run the script with the desired shell type:
```sh
python ./warp-history.py --shell bash
```or
```sh
python ./warp-history.py --shell zsh
```## Command-Line Arguments
- `-shell`: Specify the shell type (bash or zsh). Default is bash.
## Example
```sh
python ./warp-history.py --shell zsh
```This command will extract the history from Warp and McFly and write it to the Zsh history file.
## Notes
- The existing shell history file will be backed up with a `.bak` extension.
- You need to restart your shell to apply the changes.## License
This project is licensed under the MIT License. See the `LICENSE` file for details.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
## Acknowledgements
- [Warp Terminal](https://www.warp.dev/)
- [McFly](https://github.com/cantino/mcfly)## Contact
For any questions or suggestions, please open an issue in the repository.