zsh/tmux: use OSC 7 to signal pwd. fixes M-e for tmux-edit-helper

This commit is contained in:
Daniel Lundin 2023-07-02 12:35:15 +02:00
parent ccf0d176c5
commit 471ee13bf5

3
.zshrc
View file

@ -155,7 +155,8 @@ chpwd_functions+=prompt_chpwd
prompt_precmd() {
PROMPT_LABEL="$HOST"
echo -ne '\e[5 q' # Fix cursor
print -n '\e[5 q' # Fix cursor
print -n "\e]7;${PWD}\a" # OSC 7 for terminal pwd
}
precmd_functions+=(prompt_precmd)