From db1ad32d67c193315aa0efb2fe4afa54a9577183 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Thu, 14 Nov 2024 22:41:10 +0100 Subject: [PATCH] zsh: don't flash bad cursor and title --- common/.config/zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/.config/zsh/.zshrc b/common/.config/zsh/.zshrc index 9ca61fec..4eae6956 100644 --- a/common/.config/zsh/.zshrc +++ b/common/.config/zsh/.zshrc @@ -1,3 +1,7 @@ +# Set cursor and title early +echo -ne '\e[5 q' +echo -ne "\e]0;$(print -P "%n@%m [%3~]")\007" + command -v direnv &>/dev/null && emulate zsh -c "$(direnv export zsh)" if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then