iridakos / stup

Daily notes in the terminal :penguin:
https://github.com/iridakos/stup
MIT License
414 stars 31 forks source link

Fix week and previous-week aliases #55

Closed ghost closed 3 years ago

ghost commented 3 years ago

Also, I removed unneeded -d today from year

This fixes #52

I tested them with the following command (this uses the old way)

$ for d in {09..15}; do faketime 2020-11-$d bash -c 'date -d "$(date -d yesterday +%u) days ago" +"%Y-%m-%d"'; done
2020-11-02
2020-11-09
2020-11-09
2020-11-09
2020-11-09
2020-11-09
2020-11-09
iridakos commented 3 years ago

@tiosgz Great work, thank you very very much for the contributions! :rocket: :100: