Thanks to Bernhard Tittelbach <bernhard@tittelbach.org>
for the suggestion, thanks to Julius Plenz <zshrc@plenz.com>
for his initial idea at http://www.plenz.com/tmp/setup/zshrc
and to Carsten Hey <carsten@debian.org> for the idea naming
it 'cdt' (instead of cdtemp).
use the wodim binary instead. Wodim is the debian fork of Joerg Schillings
cdrecord.
+: **cdt()**
+Creates a temporary directory using mktemp. Then changes current
+working directory to it.
+
: **changed()**
Lists files in current directory, which have been changed within the
last N days. N is an integer to be passed as first and only argument.
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"