add zsh and kubectl prompts to agnoster prompt

This commit is contained in:
Ghasem Shirazi 2021-04-14 14:17:52 -07:00
commit 63d8b0079f

View file

@ -108,10 +108,10 @@ prompt_git() {
PL_BRANCH_CHAR=$'\u2693' # anchor PL_BRANCH_CHAR=$'\u2693' # anchor
} }
if [[ ! -z "${ZSH_GIT_PROMPT}" ]]; then if [[ ! -z "${USE_ZSH_GIT_PROMPT}" ]]; then
# just use zsh-git-prompt with our segment coloring # just use zsh-git-prompt with our segment coloring
prompt_segment yellow red prompt_segment yellow red
echo -n ${PL_BRANCH_CHAR} ${ZSH_GIT_PROMPT} echo -n ${PL_BRANCH_CHAR} $(git_super_status)
return return
fi fi