Support cwd updates using zsh, ansi-term w/i Emacs
This commit is contained in:
parent
cf13a3b182
commit
d688393344
1 changed files with 9 additions and 0 deletions
|
@ -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
|
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
|
# make vim the default editor for commit messages etc
|
||||||
export EDITOR=$(which vim)
|
export EDITOR=$(which vim)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue