3 # Helper functions to create temporary files and directories
5 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
8 # Source repository: http://git.madduck.net/v/etc/zsh.git
12 cd $(mktemp -td cdt.XXXXXXXX)
17 local tmpfile=$(mktemp -t vit.XXXXXXXX)
18 [ "$1" = '-' ] && cat >| $tmpfile
19 sensible-editor $tmpfile </dev/tty >/dev/tty