Files
.dotfiles/.config/fish/functions/whoseturn.fish
2025-06-11 02:39:45 +02:00

12 lines
293 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 "Darling's turn"
else
echo "My turn"
end
end