aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/profile.d/verse.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/profile.d/verse.sh b/sh/profile.d/verse.sh
index 353c882a..303a1b05 100644
--- a/sh/profile.d/verse.sh
+++ b/sh/profile.d/verse.sh
@@ -18,6 +18,7 @@ command -v verse >/dev/null 2>&1 || return
# date); run in a subshell to keep vars out of global namespace
(
now=$(date +%Y%m%d)
+ last=0
[ -f "$HOME"/.verse ] && last=$(cat -- "$HOME"/.verse)
[ "$now" -gt "$last" ] || exit
verse