Created
October 4, 2021 16:15
-
-
Save tyrm/fef54b655bd1b39acfa759678fea410f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update prompt | |
## Load version control information | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' enable git svn | |
zstyle ':vcs_info:git:*' formats '(%b)' | |
precmd() { vcs_info } | |
## Set up the prompt (with git branch name) | |
setopt PROMPT_SUBST | |
export PROMPT='%F{cyan}ᛏ%F{reset} %F{7}%1~%F{reset}%F{yellow}${vcs_info_msg_0_}%F{reset} %# ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment