From 3556761ebde269cec8679f8ff542149574c6a9d1 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Wed, 5 Jan 2022 23:15:17 -0500 Subject: [PATCH] Changed how the mktemp trick work. This way actually has a couple of advantages. 1. With this you write something like $ _ vim file.xml. This is automatically drop you into a tmp dir then run the vim command. 2. zsh completions aren't still work. --- zsh/modules/alias/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/modules/alias/init.zsh b/zsh/modules/alias/init.zsh index 5ce7dbb..f0cbe24 100644 --- a/zsh/modules/alias/init.zsh +++ b/zsh/modules/alias/init.zsh @@ -15,7 +15,7 @@ alias docker="sudo docker" alias dc="sudo docker-compose" # Goes to a temp folder. This will be deleted on restart. -alias tmp="cd $(mktemp -d)" +alias _="cd `mktemp -d` ; " alias :q="exit"