Automate Python script to run daily journal

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

alias journal='day=$(python -c "import datetime; print(datetime.datetime.now().strftime(\"%Y-%m-%d.%A\"));print((datetime.date(2022, 12, 31)-datetime.date.today()).days)");day_parts=(${day//./ }); day=${day_parts[0]}; weekday=${day_parts[1]}; dleft=${day_parts[2]} && echo "Today is $weekday and there are $dleft days left of this year" >> "$day.txt"'

databeliever