Skip to content

Instantly share code, notes, and snippets.

@adam-zethraeus
Created August 22, 2023 05:12
Show Gist options
  • Save adam-zethraeus/b607d923bdc6d73bd5b5949b732bc826 to your computer and use it in GitHub Desktop.
Save adam-zethraeus/b607d923bdc6d73bd5b5949b732bc826 to your computer and use it in GitHub Desktop.
Print the current working directory of the most recent Warp terminal window from the command line
#!/usr/bin/env bash
sqlite3 "${HOME}/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite" -readonly -cmd 'select cwd from terminal_panes order by id desc limit 1' '.exit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment