From b3da54fafa84a041de6d21cc512292470e7d2870 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 22 Mar 2018 12:48:02 -0400 Subject: [PATCH] Add mktemp --- shells/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shells/zshrc b/shells/zshrc index 2f2a361..29bb189 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -347,6 +347,9 @@ fi alias -g nify=" > /dev/null 2>&1 &" alias -g nifyd=" > /dev/null 2>&1 & disown" alias -g L="2>&1|less" +if ex mktemp; then + alias mtmp='pushd "$(mktemp -d)" >/dev/null' +fi if ex rg; then alias -g G='|& rg' alias rg='rg -i'