summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-09-19 22:09:18 -0400
committerKyle Meyer <kyle@kyleam.com>2022-01-15 16:39:44 -0500
commitba05c935edb5d0ad8837123eb34d327d53f4d2c0 (patch)
tree7dcac4c33ed4236317c320fb3752d6e22b9dee30
parent06cd608538c8f544b8105f9fdf6635aaac70510b (diff)
downloademacs.d-ba05c935edb5d0ad8837123eb34d327d53f4d2c0.tar.gz
snippets: Add mktemp snippet
-rw-r--r--snippets/sh-mode/mktempd4
1 files changed, 4 insertions, 0 deletions
diff --git a/snippets/sh-mode/mktempd b/snippets/sh-mode/mktempd
new file mode 100644
index 0000000..e5c4b25
--- /dev/null
+++ b/snippets/sh-mode/mktempd
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+# key: mt
+# --
+mktemp -d "\${TMPDIR:-/tmp}"/$1-XXXXXXX$0