ソースを参照

Open a term in the most recent emacs directory

Samuel W. Flint 8 年 前
コミット
98646faa40
1 ファイル変更6 行追加0 行削除
  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