Skip to content

Instantly share code, notes, and snippets.

@tyrm
Created October 4, 2021 16:15
Show Gist options
  • Save tyrm/fef54b655bd1b39acfa759678fea410f to your computer and use it in GitHub Desktop.
Save tyrm/fef54b655bd1b39acfa759678fea410f to your computer and use it in GitHub Desktop.
# 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