This commit is contained in:
Daniel Flanagan 2022-12-01 17:17:50 -06:00
parent b23665dd33
commit 60436b9f71
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
[[ -z "$1" ]] && { echo "No argument provided." >&2 ; exit 1; } usage() {
echo "Usage:"
echo " at <DATE> && command..."
}
[[ -z "$1" ]] && { echo "Error: No DATE argument provided." >&2; usage; exit 1; }
d="$(date -d "${@}" +%s)" d="$(date -d "${@}" +%s)"
while [[ "$d" -ge "$(date +%s)" ]]; do while [[ "$d" -ge "$(date +%s)" ]]; do
@ -8,4 +13,4 @@ while [[ "$d" -ge "$(date +%s)" ]]; do
days=$((_dt / 86400)) days=$((_dt / 86400))
echo -ne "\rTime Remaining: ${days}d $(date -u --date @$((_dt)) +%H:%M:%S) "; echo -ne "\rTime Remaining: ${days}d $(date -u --date @$((_dt)) +%H:%M:%S) ";
sleep 0.1 sleep 0.1
done done

View file

@ -44,6 +44,7 @@ roots = []
comment-token = "#" comment-token = "#"
language-server = { command = "nimlangserver" } language-server = { command = "nimlangserver" }
indent = { tab-width = 2, unit = " " } indent = { tab-width = 2, unit = " " }
auto-format = true
[[grammar]] [[grammar]]
name = "nim" name = "nim"