Last active
April 3, 2023 20:23
-
-
Save MurphyPone/ad42f2ae436de843cecf89c86d54a0fb to your computer and use it in GitHub Desktop.
.zshrc for vcs
This file contains 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
# 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