Files
.dotfiles/.config/fish/functions/whoseturn.fish
2025-04-27 03:50:20 +02:00

12 lines
290 B
Fish

function whoseturn
set start_date (date -d "2025-01-01" +%s)
set current_date (date +%s)
set days_passed (math floor\((math $current_date - $start_date) / 86400\))
if test (math $days_passed % 2) -eq 0
echo "Alex's turn"
else
echo "My turn"
end
end