]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zsh/rc/010vcs.zsh
Git VCS in zsh prompt
[dotfiles.git] / zsh / .zsh / rc / 010vcs.zsh
diff --git a/zsh/.zsh/rc/010vcs.zsh b/zsh/.zsh/rc/010vcs.zsh
new file mode 100644 (file)
index 0000000..e34b617
--- /dev/null
@@ -0,0 +1,6 @@
+autoload -Uz vcs_info
+zstyle ":vcs_info:*" enable git
+zstyle ":vcs_info:*" max-exports 1
+zstyle ":vcs_info:*" get-revision true
+zstyle ":vcs_info:*" formats "%i"
+zstyle ":vcs_info:*" actionformats "%a|%i"