From bc76bf5f74111eedbf0a12715c78c0916a0abca9 Mon Sep 17 00:00:00 2001 From: caem Date: Fri, 24 Jan 2025 13:20:36 +0100 Subject: [PATCH] clutching on my last straws --- modules/home/caem/core/zsh/conf.d/ps1.zsh | 6 +----- modules/home/caem/core/zsh/default.nix | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/home/caem/core/zsh/conf.d/ps1.zsh b/modules/home/caem/core/zsh/conf.d/ps1.zsh index 7690f0f..7b410c9 100644 --- a/modules/home/caem/core/zsh/conf.d/ps1.zsh +++ b/modules/home/caem/core/zsh/conf.d/ps1.zsh @@ -16,10 +16,6 @@ elif [[ "$path_no_ghostty" == *"/nix/store"* ]]; then local nix_shell_ps1="$nix_shell_ps1_t" fi -setopt prompt_subst -autoload -Uz vcs_info zstyle ':vcs_info:*' formats " ${c34}${c0}${c31}(%b)${c0}" -zstyle ':vcs_info:*' enable git -precmd () { vcs_info } -export PS1="${c38}[${c35}%3~${vcs_info_msg_0_}${nix_shell_ps1}${c38}]${c0}# " +export PS1="${c38}[${c35}%3~${c0}${vcs_info_msg_0_}${nix_shell_ps1}${c38}]${c0}# " diff --git a/modules/home/caem/core/zsh/default.nix b/modules/home/caem/core/zsh/default.nix index c20cb51..795b504 100644 --- a/modules/home/caem/core/zsh/default.nix +++ b/modules/home/caem/core/zsh/default.nix @@ -54,6 +54,13 @@ tree = "tre"; }; + initExtraFirst = '' + setopt prompt_subst + autoload -Uz vcs_info + zstyle ':vcs_info:*' enable git + precmd () { vcs_info } + ''; + initExtra = '' alias -g -- -h='-h 2>&1 | bat --language=help --style=plain' alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'