From fe24172e4c988d62101c8f7b639c344a769dab40 Mon Sep 17 00:00:00 2001 From: eeemsi Date: Fri, 13 Jan 2023 17:39:34 +0100 Subject: [PATCH] feat (zshrc): create handy alias to create a temporary directory and cd into it --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index 9bc4485..c2feaa9 100644 --- a/zshrc +++ b/zshrc @@ -58,6 +58,9 @@ alias view='vim -R' # Suppresses line numbers in less alias less='less --line-numbers' +# Create temporary directory and cd to it +alias cdt='builtin cd "$(mktemp -d)"' + # Defines the prompt precmd() { vcs_info