Allow passing arguments to now and hnow
Some checks are pending
/ check (push) Waiting to run

This commit is contained in:
Oliver Davies 2025-09-21 20:35:47 +01:00
parent 9dae5ede60
commit 9ed2ad3390
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ in
text = ''
# Based on https://github.com/rwxrob/dot/blob/main/scripts/hnow.
echo "== $(${lib.getExe now})"
echo "== $(${lib.getExe now} "$*")"
'';
};
};

View file

@ -15,7 +15,7 @@ in
text = ''
# Based on https://github.com/rwxrob/dot/blob/main/scripts/now.
out=$(date "+%A, %B %e, %Y, %R %Z")
out=$(date "+%A, %B %e, %Y, %R %Z" "-d ''${*:-now}")
echo "''${out// / }"
'';