From f3435c5741e8a0a69527196a96deb4093a2b9044 Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Mon, 16 Sep 2024 10:59:16 +0200 Subject: [PATCH] add date to cdtmp --- profile/.profile.d/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/.profile.d/functions.sh b/profile/.profile.d/functions.sh index 4ef8ad82..9517aae6 100644 --- a/profile/.profile.d/functions.sh +++ b/profile/.profile.d/functions.sh @@ -3,6 +3,6 @@ # Inspiration from https://frantic.im/cdtmp/ and grml-zsh-config's cdt # Usage: cdtmp [foo] cdtmp() { - builtin cd "$(mktemp -d "/tmp/$USER-${1:+$1-}XXXXXX")" || return + builtin cd "$(mktemp -d "/tmp/$USER-${1:+$1-}$(date +%Y-%m-%d)-XXXXXX")" || return builtin pwd }