Browse Source

Open a term in the most recent emacs directory

Samuel W. Flint 7 years ago
parent
commit
98646faa40
1 changed files with 6 additions and 0 deletions
  1. 6 0
      i3-emacs-dir-term

+ 6 - 0
i3-emacs-dir-term

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