From 65f136b35f8d1185aae360ce182022cefc214a4e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 29 Jan 2012 09:55:11 +0100 Subject: [PATCH 1/1] fix symlink creation for cdt.latest --- .zsh/zshrc/39_tempfuncs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2