aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-today
blob: 96cbec411482e1451de6e4b1bf623eeb9ca6b3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Usage: recit today

set -e

# shellcheck source=/dev/null
source lib/loader

recfile=$(load_recit)

fmt_date=$(date '+%Y-%m-%d')

recsel -e "(Time >> '$fmt_date 00:00:00' && Time << '$fmt_date 23:59:59') || Time == '$fmt_date'" -t Entry "${recfile}"