diff --git a/.zshrc b/.zshrc index c60dcdc5..8e857ab9 100644 --- a/.zshrc +++ b/.zshrc @@ -193,10 +193,14 @@ function chpwd-osc7-pwd() { add-zsh-hook -Uz chpwd chpwd-osc7-pwd function preexec { + # needed for foot prompt integration print -n "\e]133;C\e\\" + printf '\e[2 q' # block cursor before running a command } precmd() { + printf '\e[6 q' # beam cursor before showing the prompt again + # needed for foot prompt integration print -Pn "\e]133;A\e\\" if ! builtin zle; then print -n "\e]133;D\e\\"