about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/.zsh_profile9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/.zsh_profile b/configs/.zsh_profile
index 6e333599882d..93721b70f4a5 100644
--- a/configs/.zsh_profile
+++ b/configs/.zsh_profile
@@ -1,5 +1,14 @@
 export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/fzf/bin:$HOME/n/bin:$HOME/.cargo/bin
 
+
+# Have zsh export variables for Emacs to track the cwd
+if [ -n "$INSIDE_EMACS" ]; then
+  chpwd() { print -P "\033AnSiTc %d" }
+  print -P "\033AnSiTu %n"
+  print -P "\033AnSiTc %d"
+fi
+
+
 # make vim the default editor for commit messages etc
 export EDITOR=$(which vim)