aboutsummaryrefslogtreecommitdiff
path: root/snippets/sh-mode/printf_with_date_time_tee
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-16 05:14:28 -0600
committerCraig Jennings <c@cjennings.net>2026-02-16 05:14:28 -0600
commitd25b6dfb67bca7f04fa280dfd89e603d0eaeaf38 (patch)
tree54d681ebcb4e3b418bc3666656792c80a40d765a /snippets/sh-mode/printf_with_date_time_tee
parent2b808e2470c6bdee573c31715356f4e31e216973 (diff)
downloaddotemacs-d25b6dfb67bca7f04fa280dfd89e603d0eaeaf38.tar.gz
dotemacs-d25b6dfb67bca7f04fa280dfd89e603d0eaeaf38.zip
chore(yasnippet): move snippets into emacs.d for source control
Relocate snippets-dir from ~/sync/org/snippets/ to ~/.emacs.d/snippets/ and restore 28 snippet files from backup.
Diffstat (limited to 'snippets/sh-mode/printf_with_date_time_tee')
-rw-r--r--snippets/sh-mode/printf_with_date_time_tee5
1 files changed, 5 insertions, 0 deletions
diff --git a/snippets/sh-mode/printf_with_date_time_tee b/snippets/sh-mode/printf_with_date_time_tee
new file mode 100644
index 000000000..63209aa49
--- /dev/null
+++ b/snippets/sh-mode/printf_with_date_time_tee
@@ -0,0 +1,5 @@
+# key: <pdtt
+# name: printf_with_date_time_tee
+# --
+printf "$1 @ %s\n" "$(date +'%T')" | tee -a $2
+$0 \ No newline at end of file