From 990d4a913c0980118b18436d764bda154278770c Mon Sep 17 00:00:00 2001 From: caem Date: Fri, 24 Jan 2025 13:29:34 +0100 Subject: [PATCH] no way --- modules/home/caem/core/zsh/conf.d/ps1.zsh | 3 ++- modules/home/caem/core/zsh/default.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home/caem/core/zsh/conf.d/ps1.zsh b/modules/home/caem/core/zsh/conf.d/ps1.zsh index d793b5a..81f6479 100644 --- a/modules/home/caem/core/zsh/conf.d/ps1.zsh +++ b/modules/home/caem/core/zsh/conf.d/ps1.zsh @@ -17,10 +17,11 @@ elif [[ "$path_no_ghostty" == *"/nix/store"* ]]; then fi setopt prompt_subst +setopt promptsubst autoload -Uz vcs_info zstyle ':vcs_info:*' enable git -precmd () { vcs_info } zstyle ':vcs_info:*' formats " ${c34}${c0}${c31}(%b)${c0}" +precmd () { vcs_info } echo "${vcs_info_msg_0_}" 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 eb286b5..c20cb51 100644 --- a/modules/home/caem/core/zsh/default.nix +++ b/modules/home/caem/core/zsh/default.nix @@ -54,7 +54,7 @@ tree = "tre"; }; - initExtraFirst = '' + initExtra = '' alias -g -- -h='-h 2>&1 | bat --language=help --style=plain' alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'