diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-05T00·30-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-05T00·30-0400 |
commit | d688393344d254339144623863a8e430c56decf3 (patch) | |
tree | 915d7c6ddd6b5284b03206dabc19092d88a95f42 /configs | |
parent | cf13a3b18217ba8c683493f94c9cc91d865f0447 (diff) |
Support cwd updates using zsh, ansi-term w/i Emacs
Diffstat (limited to 'configs')
-rw-r--r-- | configs/.zsh_profile | 9 |
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) |