summaryrefslogtreecommitdiff
path: root/plugins/gitfast/gitfast.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gitfast/gitfast.plugin.zsh')
-rw-r--r--plugins/gitfast/gitfast.plugin.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/gitfast/gitfast.plugin.zsh b/plugins/gitfast/gitfast.plugin.zsh
new file mode 100644
index 000000000..dba1b1315
--- /dev/null
+++ b/plugins/gitfast/gitfast.plugin.zsh
@@ -0,0 +1,8 @@
+dir=$(dirname $0)
+source $dir/../git/git.plugin.zsh
+source $dir/git-prompt.sh
+
+function git_prompt_info() {
+ dirty="$(parse_git_dirty)"
+ __git_ps1 "${ZSH_THEME_GIT_PROMPT_PREFIX//\%/%%}%s${dirty//\%/%%}${ZSH_THEME_GIT_PROMPT_SUFFIX//\%/%%}"
+}