Fix timelog alias examples

Sample aliases should have date expanded at execution time, and not at definition time.
This commit is contained in:
Marko Kocic 2013-11-05 09:00:45 +00:00
parent e5d7e35d62
commit 79e5c15ff1

View File

@ -601,8 +601,8 @@ To generate time logs, ie to clock in and clock out, you could:
- at the command line, use these bash aliases: - at the command line, use these bash aliases:
alias ti="echo i `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" 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). - 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. These rely on a "timeclock" executable which I think is just the ledger 2 executable renamed.