'Modify Powerlevel10k zsh prompt
Solution 1:[1]
Do you want it to not show the branch name only? i.e. still show staged files, untracked files, etc. or do you want to disable reporting of all .git info?
For the latter, look for LEFT_PROMPT_ELEMENTS (should be near the beginning of the file) -- I used p9k before p10k so it ported some settings over:
# The list of segments shown on the left. Fill it with the most important segments.
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
# os_icon # os identifier
dir # current directory
vcs # git status
prompt_char # prompt symbol
)
and comment out vcs.
For the former, look for VCS and you can remove the parts where it reports local branches, tags, etc.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Glen Yu |

