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)