🚧 Set up resume read script for mupdf

This commit is contained in:
z3rOR0ne 2024-11-12 16:11:37 -08:00
parent ddaa1ddab2
commit 274c40ce80
2 changed files with 10 additions and 0 deletions

7
scripts/resume_read Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
leftoff=7
# Look for current read in either .bashrc or .zshrc
gobble mupdf -I -r 204 "${CURRENT_READ}" "${leftoff}"

View file

@ -208,3 +208,6 @@ bindkey '^f' fex-widget
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# current book being read (used in resume_read script)
export CURRENT_READ=""