From 60436b9f7173195dd7c4878ddf76ae0849ec37b0 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 1 Dec 2022 17:17:50 -0600 Subject: [PATCH] At --- common/bin/at | 9 +++++++-- common/helix/languages.toml | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/bin/at b/common/bin/at index efa70d0..0ffe44a 100755 --- a/common/bin/at +++ b/common/bin/at @@ -1,6 +1,11 @@ #!/usr/bin/env bash -[[ -z "$1" ]] && { echo "No argument provided." >&2 ; exit 1; } +usage() { + echo "Usage:" + echo " at && 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 \ No newline at end of file diff --git a/common/helix/languages.toml b/common/helix/languages.toml index 8c55694..ba9d664 100644 --- a/common/helix/languages.toml +++ b/common/helix/languages.toml @@ -44,6 +44,7 @@ roots = [] comment-token = "#" language-server = { command = "nimlangserver" } indent = { tab-width = 2, unit = " " } +auto-format = true [[grammar]] name = "nim"