Skip to content

Instantly share code, notes, and snippets.

@MurphyPone
Last active April 3, 2023 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MurphyPone/ad42f2ae436de843cecf89c86d54a0fb to your computer and use it in GitHub Desktop.
Save MurphyPone/ad42f2ae436de843cecf89c86d54a0fb to your computer and use it in GitHub Desktop.
.zshrc for vcs
# VCS
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%F{243}(%b)%f' # '%F{51}(%b) %r%f'
zstyle ':vcs_info:*' enable git
# RPROMPT=\$vcs_info_msg_0_
PROMPT='%(?.%F{green}√.%F{red}?%?)%f %F{184}%h%f %F{208}[%*]%f %F{51}%2~%f ${vcs_info_msg_0_} %F{160}δ%f '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment