zsh/tmux: use OSC 7 to signal pwd. fixes M-e for tmux-edit-helper
This commit is contained in:
parent
ccf0d176c5
commit
471ee13bf5
1 changed files with 2 additions and 1 deletions
3
.zshrc
3
.zshrc
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue