X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/a89e29c6ee8aec55e559f411431108c850533154..bc7e3da7bae02125450f495af9ac03b6675aaf41:/.zsh/zshrc/39_tempfuncs?ds=sidebyside diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs index 79f43dd..d3391f6 100644 --- a/.zsh/zshrc/39_tempfuncs +++ b/.zsh/zshrc/39_tempfuncs @@ -13,12 +13,13 @@ cdt () { tmpdir=$(mktemp -td ${1:-cdt}.XXXXXX) builtin cd $tmpdir pwd - ln -sf $tmpdir ${TMPDIR:-/tmp}/cdt.latest + rm -f ${TMPDIR:-/tmp}/cdt.latest + ln -s $tmpdir ${TMPDIR:-/tmp}/cdt.latest } vit () { local prefix - for i in "$@"; do + for i in "$@"; do case "$i" in -) local stdin=1; shift;; *) if [ -z "${prefix:-}" ]; then