From 471ee13bf5e6802be38f43cf5e12d90881d674b7 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 2 Jul 2023 12:35:15 +0200 Subject: [PATCH] zsh/tmux: use OSC 7 to signal pwd. fixes M-e for tmux-edit-helper --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index be07564..55aa782 100644 --- a/.zshrc +++ b/.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)