From 5eb94d830e40dc57ee4abf8f7dc94c5710a3a332 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 10 Apr 2022 23:24:54 -0500 Subject: [PATCH] Added mkcdtemp which does the same as mkcd, but with no arguments, and uses mktemp as the cd target --- .bashrc.d/mkcdtemp.bash | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .bashrc.d/mkcdtemp.bash diff --git a/.bashrc.d/mkcdtemp.bash b/.bashrc.d/mkcdtemp.bash new file mode 100644 index 0000000..7e7462d --- /dev/null +++ b/.bashrc.d/mkcdtemp.bash @@ -0,0 +1,3 @@ +mkcdtemp() { + cd "$(mktemp -d)" || return +}