#!/bin/zsh -f programname=`basename $0` if [ $# -eq 0 ] ; then echo "Usage ${programname} directory" exit fi emacsclient -n --eval "(dired \"${1}\")"