Skip to content

Instantly share code, notes, and snippets.

@emad-elsaid
Last active October 12, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emad-elsaid/13061b6bd5f09c45437ff3fa32324135 to your computer and use it in GitHub Desktop.
Save emad-elsaid/13061b6bd5f09c45437ff3fa32324135 to your computer and use it in GitHub Desktop.
This will read your google chrome local history database and offer you fuzzy search with dmenu to open one of them
#!/usr/bin/env bash
cp ~/.config/google-chrome/Default/History /tmp/History
sqlite3 /tmp/History "select url, title from urls;" \
| dmenu -i -l 20 -fn "Source Code Pro:regular:size=16" \
| awk 'BEGIN { FS = "|" } ; { print $1 }' \
| xargs xdg-open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment