X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/a89e29c6ee8aec55e559f411431108c850533154..653030190096887a4084c50ab96dd74eaa928368:/.zsh/zshrc/39_tempfuncs 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