From 2fbd81df2db1d6d2f19dff8597731bee284cb7cc Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 6 Aug 2024 18:13:27 +0100 Subject: [PATCH] ;doc: timeclock: fix ti/to scripts --- hledger/hledger.m4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index f9021f288..127d01f83 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -4328,8 +4328,8 @@ To generate time logs, ie to clock in and clock out, you could: - at the command line, use these bash aliases: ```cli - alias ti="echo i `date '+%Y-%m-%d %H:%M:%S'` \$* >>$TIMELOG" - alias to="echo o `date '+%Y-%m-%d %H:%M:%S'` >>$TIMELOG" + alias ti='echo i `date "+%Y-%m-%d %H:%M:%S"` $* >>$TIMELOG' + alias to='echo o `date "+%Y-%m-%d %H:%M:%S"` >>$TIMELOG' ``` - or use the old `ti` and `to` scripts in the [ledger 2.x repository](https://github.com/ledger/ledger/tree/maint/scripts). These rely on a "timeclock" executable which I think is just the ledger 2 executable renamed.