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 where Warp is not able to search through the whole command history.
- 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.
- Python 3.x
- Warp terminal with history stored in
~/.local/state/warp-terminal/warp.sqlite
- McFly installed and available in the system PATH
- Clone the repository:
git clone <repository-url> cd <repository-directory>
Run the script with the desired shell type:
python ./warp-history.py --shell bash
or
python ./warp-history.py --shell zsh
-shell
: Specify the shell type (bash or zsh). Default is bash.
python ./warp-history.py --shell zsh
This command will extract the history from Warp and McFly and write it to the Zsh history file.
- The existing shell history file will be backed up with a
.bak
extension. - You need to restart your shell to apply the changes.
This project is licensed under the MIT License. See the LICENSE
file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
For any questions or suggestions, please open an issue in the repository.