Created
August 22, 2023 05:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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