From 2ae741def777c91c6b3ec5b29c9a7ec22b9a4abd Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 4 Jul 2024 21:44:40 +0300 Subject: [PATCH] [zsh] git status in prompt --- zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 868293c..0ad24bb 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -9,3 +9,7 @@ fi setopt appendhistory # Append history to the history file (no overwriting) setopt incappendhistory # Immediately append to the history file, not just when a term is killed setopt histignoredups + +source ~/.dotfiles/git/git-prompt.sh +setopt PROMPT_SUBST ; PS1='%n@%m %c$(__git_ps1 " [%s]")\$ ' +source ~/.zshrc_local