From f157c04d1fd31400e0d793914ec84d0498f0a315 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 3 Aug 2011 08:48:21 +0200 Subject: [PATCH] default to cdt prefix in tempfuncs --- .zsh/zshrc/39_tempfuncs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs index 0350925..4b46a17 100644 --- a/.zsh/zshrc/39_tempfuncs +++ b/.zsh/zshrc/39_tempfuncs @@ -27,7 +27,7 @@ vit () { ;; esac done - local tmpfile=$(mktemp -t ${prefix}.XXXXXX) + local tmpfile=$(mktemp -t ${prefix:-vit}.XXXXXX) [ -n "$stdin" ] && cat >| $tmpfile sensible-editor $tmpfile /dev/tty echo $tmpfile -- 2.39.5