+# Create a dir and cd there
+
+function mcd () {
+ mkdir -vp $1
+ cd $1
+}
+
+# Capture the screen in a dated png
+
+function cap () {
+ name="capture-$(date +%s).png"
+ [[ $1 ]] && sleep $1
+ xwd | convert - ${name}
+ \ls -l ${name}
+}
+
+# Create and CD in a /tmp/tmp.XXXXXX directory. With the '-'
+# arguments, do not create one and CD in the most recent instead
+
+function cdt () {
+ if [[ $1 ]]; then
+ if [[ $1 == "-" ]]; then
+ cd $(\ls -td /tmp/tmp.?????? | head -1)
+ else
+ echo "USAGE: cdt [-]" >&2
+ return 1
+ fi
+ else
+ cd $(mktemp -d /tmp/tmp.XXXXXX)
+ fi
+}
+
+alias t='cd /tmp'
+
+alias trash=trash.sh
+
+function mmsget () {
+ mplayer $1 -dumpstream -dumpfile $(basename $1)
+}
+