diff --git a/scripts/resume_read b/scripts/resume_read new file mode 100755 index 00000000..7fb144ea --- /dev/null +++ b/scripts/resume_read @@ -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}" diff --git a/zshrc.txt b/zshrc.txt index 844d33b5..d7d0b278 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -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=""