#!/bin/zsh -f DIRECTORY=$(emacsclient --eval "(with-current-buffer (other-buffer) default-directory)" | awk -F\" -e '{print $2}') cd $DIRECTORY urxvtc