diff options
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/.zsh/prompt.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/zsh/.zsh/prompt.sh b/zsh/.zsh/prompt.sh index 53d565f..ef015fd 100644 --- a/zsh/.zsh/prompt.sh +++ b/zsh/.zsh/prompt.sh @@ -1,3 +1,11 @@ #!/usr/bin/env zsh -eval "$(starship init zsh)" +autoload -Uz vcs_info +zstyle ":vcs_info:*" enable git svn +zstyle ':vcs_info:git:*' formats '%F{green}(%b)%f ' +precmd() { + vcs_info +} +setopt prompt_subst +NEWLINE=$'\n' +PROMPT=' %2~ ${vcs_info_msg_0_}%# ' |