This project provides a tab-completion of web history in Zsh.
It is designed for use with a history file of a Chromium-based browser (defaults to Google Chrome history).
The querying of the browser database file is provided via a command-line utility (web-hist).
- Searches your browser history and suggests previously visited URLs.
- Supports globbing with (
*), - Incremental completion for domain, path, and parameters
-
Build the project using
make:make
-
Install with:
make install
This installs:
web-histinto~/bin/.- Zsh completion script
_webinto~/.zfunc/.
You need to have cargo (Rust project manager) to run the build.
Ensure ~/bin is in your PATH and ~/.zfunc is sourced in your .zshrc:
export PATH=$HOME/bin:$PATH
fpath=($HOME/.zfunc $fpath)
autoload -Uz compinit && compinitweb www.goog[TAB] # Suggest visited URLs like 'www.google.com', 'www.google.fr'web *math[TAB] # Search history for any URL containing 'math'
web */*.ipynb[TAB] # Find previously visited Jupyter Notebooks
web */*?*.ipynb[TAB]compdef google-chrome=web- WEB_HISTORY_FILE: The location of the history file. Defaults to
/.config/google-chrome/Default/History.
Example:
export WEB_HISTORY_FILE=~/.config/microsoft-edge/Default/HistoryIn large part generated by an LLM.