summaryrefslogtreecommitdiff
path: root/dot_local/share/sh/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/share/sh/tmp')
-rw-r--r--dot_local/share/sh/tmp11
1 files changed, 11 insertions, 0 deletions
diff --git a/dot_local/share/sh/tmp b/dot_local/share/sh/tmp
new file mode 100644
index 0000000..1aeaea1
--- /dev/null
+++ b/dot_local/share/sh/tmp
@@ -0,0 +1,11 @@
+. hascmd mktemp || return
+t() {
+ mkdir -p /tmp/t
+ cd /tmp/t
+}
+tt() {
+ local dir=$(mktemp -d)
+ [ -d "$dir" ] || return 1
+ cd "$dir"
+ trap "rm -r '$dir'" EXIT
+}