Initialize
This commit is contained in:
11
.config/fish/functions/whoseturn.fish
Normal file
11
.config/fish/functions/whoseturn.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user