This commit is contained in:
Paul Walker
2021-04-27 11:27:56 +01:00
parent d7ed05c35e
commit 730253d1fd
6 changed files with 114 additions and 0 deletions

11
zshrc.d/prompt.zsh Normal file
View File

@@ -0,0 +1,11 @@
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%F{240}(%b)%f'
zstyle ':vcs_info:*' enable git
# PROMPT='%n@%m %(?.√.?%?) %F{green}%~%f %# '
PROMPT='%n@%m:%F{green}%~%f %# '
# RPROMPT='$vcs_info_msg_0_ %F{yellow}%*%f'
RPROMPT='$vcs_info_msg_0_ %F{yellow}%*%f'