From: martin f. krafft Date: Wed, 3 Aug 2011 06:48:21 +0000 (+0200) Subject: default to cdt prefix in tempfuncs X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/f157c04d1fd31400e0d793914ec84d0498f0a315 default to cdt prefix in tempfuncs --- 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