At
This commit is contained in:
parent
b23665dd33
commit
60436b9f71
|
@ -1,6 +1,11 @@
|
|||
#!/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)"
|
||||
while [[ "$d" -ge "$(date +%s)" ]]; do
|
||||
|
@ -8,4 +13,4 @@ while [[ "$d" -ge "$(date +%s)" ]]; do
|
|||
days=$((_dt / 86400))
|
||||
echo -ne "\rTime Remaining: ${days}d $(date -u --date @$((_dt)) +%H:%M:%S) ";
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
|
@ -44,6 +44,7 @@ roots = []
|
|||
comment-token = "#"
|
||||
language-server = { command = "nimlangserver" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
auto-format = true
|
||||
|
||||
[[grammar]]
|
||||
name = "nim"
|
||||
|
|
Reference in a new issue