X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=315cec73768ef035cba09bde3039afe4b12fc5ba;hp=8e1ec13e8f7c75a489695903b6988f317b7f5af0;hb=46c2d1057e37452ce9d7af2ef8efce15806d07be;hpb=69488205afe631b2d9489d0941d3290e1577faf9 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 8e1ec13..315cec7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3137,10 +3137,8 @@ mkcd() { #f5# Create temporary directory and \kbd{cd} to it cdt() { - local t - t=$(mktemp -d) - echo "$t" - builtin cd "$t" + builtin cd "$(mktemp -d)" + builtin pwd } #f5# List files which have been accessed within the last {\it n} days, {\it n} defaults to 1