From 58541486303b2c4bb1c90393464e748f01227973 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Fri, 10 Apr 2026 00:57:59 +0000 Subject: [PATCH] chore: zsh prompt alignment --- defaults/.zshrc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/defaults/.zshrc b/defaults/.zshrc index abe6926..029bbd1 100644 --- a/defaults/.zshrc +++ b/defaults/.zshrc @@ -61,18 +61,5 @@ if [ -r /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh fi -if [ -r /opt/zsh/pure/pure.zsh ] && [ -r /opt/zsh/pure/async.zsh ]; then - fpath=(/opt/zsh/pure $fpath) - autoload -Uz promptinit - promptinit - if prompt pure >/dev/null 2>&1; then - prompt_pure_context() { :; } - zstyle ':prompt:pure:path' color blue - pure_prompt="$PROMPT" - PROMPT='%F{green}$(computer_prompt_name)%f '"$pure_prompt" - else - PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# ' - fi -else - PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# ' -fi +# Keep the prompt simple so SSH/browser terminals do not render raw control sequences. +PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# '