aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zsh')
-rw-r--r--zsh/.zsh/prompt.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/zsh/.zsh/prompt.sh b/zsh/.zsh/prompt.sh
new file mode 100644
index 0000000..ef015fd
--- /dev/null
+++ b/zsh/.zsh/prompt.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env 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_}%# '