From: martin f. krafft Date: Tue, 28 Apr 2009 16:40:02 +0000 (+0200) Subject: mktemp only takes six characters now X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/e7f4a8c5997e22bae02d741e9b1f40c42b0b0eb8?ds=sidebyside mktemp only takes six characters now --- diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs index 506f001..de2e232 100644 --- a/.zsh/zshrc/39_tempfuncs +++ b/.zsh/zshrc/39_tempfuncs @@ -9,12 +9,12 @@ # cdt () { - builtin cd $(mktemp -td cdt.XXXXXXXX) + builtin cd $(mktemp -td cdt.XXXXXX) pwd } vit () { - local tmpfile=$(mktemp -t vit.XXXXXXXX) + local tmpfile=$(mktemp -t vit.XXXXXX) [ "$1" = '-' ] && cat >| $tmpfile sensible-editor $tmpfile /dev/tty echo $tmpfile