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