X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/3857a686b5a0aaa4937eb50f982d7b290561a223..682cd624f468fc52fc8be639c69cca2f19b2b38e:/.zsh/zshrc/39_tempfuncs?ds=inline diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs index dd4eb07..de2e232 100644 --- a/.zsh/zshrc/39_tempfuncs +++ b/.zsh/zshrc/39_tempfuncs @@ -5,16 +5,16 @@ # Copyright © 1994â2008 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # -# Source repository: http://git.madduck.net/v/etc/zsh.git +# Source repository: git://git.madduck.net/etc/zsh.git # cdt () { - 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 >/dev/tty echo $tmpfile