X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=3e20e5b42527c091556bb387c43adc369ab374d1;hb=885aa3719e564cbb43f3534be9a765d5c4a07bac;hp=3271ee859b7ad6676fec31a098c48cff9507aeda;hpb=537471e8a1d5e1c6c7d1e78fc0c4f8fe01591427;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3271ee8..3e20e5b 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2656,6 +2656,13 @@ fir() { mcd() { mkdir -p "$@" && cd "$@" } +#f5# Create temporary directory and \kbd{cd} to it +cdt() { + local t + t=$(mktemp -d) + echo "$t" + builtin cd "$t" +} #f5# Unified diff to timestamped outputfile mdiff() { diff -udrP "$1" "$2" > diff.`date "+%Y-%m-%d"`."$1"