From 7e6665c7a6238499fc1ddada5223be89f522ec6c Mon Sep 17 00:00:00 2001 From: pfych Date: Wed, 19 Feb 2025 13:22:45 +1100 Subject: [PATCH] Use submodules for zsh-git-prompt --- .config/zsh/plugins/zsh-git-prompt | 1 + .gitmodules | 3 +++ .zshrc | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 160000 .config/zsh/plugins/zsh-git-prompt diff --git a/.config/zsh/plugins/zsh-git-prompt b/.config/zsh/plugins/zsh-git-prompt new file mode 160000 index 0000000..2701e8a --- /dev/null +++ b/.config/zsh/plugins/zsh-git-prompt @@ -0,0 +1 @@ +Subproject commit 2701e8ac3192f198fcaffbc2914d8e145589eb23 diff --git a/.gitmodules b/.gitmodules index e69de29..7bbda60 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".config/zsh/plugins/zsh-git-prompt"] + path = .config/zsh/plugins/zsh-git-prompt + url = https://github.com/zsh-git-prompt/zsh-git-prompt.git diff --git a/.zshrc b/.zshrc index 5d8476b..e8aebc0 100644 --- a/.zshrc +++ b/.zshrc @@ -12,7 +12,8 @@ if [[ $(uname) == "Darwin" ]]; then source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh - source $(brew --prefix)/opt/gitstatus/gitstatus.prompt.zsh + + source ~/.config/zsh/plugins/zsh-git-prompt/zshrc.sh else export PATH="${PATH}:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin" @@ -39,7 +40,7 @@ ZSH_AUTOSUGGEST_STRATEGY=(history completion) # Prompt precmd() { PROMPT="[%c] " - RPROMPT="$GITSTATUS_PROMPT" + RPROMPT="$(git_super_status)" } # Added by serverless binary installer export PATH="$HOME/.serverless/bin:$PATH"