X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/dffaced336ebd944972a3bd0be6a5ab21905eff4..9567c0145755a8997c8435ceea1189021d2abe30:/.zsh/zshrc/39_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