From 4bad2ee92451b5ed4634bcd639f484270d377f4f Mon Sep 17 00:00:00 2001 From: caem Date: Fri, 24 Jan 2025 12:58:05 +0100 Subject: [PATCH] pls dont explode --- modules/home/caem/core/zsh/conf.d/ps1.zsh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/home/caem/core/zsh/conf.d/ps1.zsh b/modules/home/caem/core/zsh/conf.d/ps1.zsh index 8955915..8c20cae 100644 --- a/modules/home/caem/core/zsh/conf.d/ps1.zsh +++ b/modules/home/caem/core/zsh/conf.d/ps1.zsh @@ -19,4 +19,11 @@ elif [[ "$path_no_ghostty" == *"/nix/store"* ]]; then local nix_shell_ps1="$nix_shell_ps1_t" fi -export PS1="${c38}[${c35}%3~${nix_shell_ps1}${c38}]${c0}# " + +setopt prompt_subst +autoload -Uz vcs_info +precmd () { vcs_info } +zstyle ':vcs_info:*' formats " ${c34}${c0}${c31}(%b)${c0}" + + +export PS1="${c38}[${c35}%3~${c0}${nix_shell_ps1}${c38}]${c0}# "