ohmyzsh/plugins/gitfast/gitfast.plugin.zsh
Douglas Creager 40b7eb9963 Use upstream git completion but oh-my-zsh prompt
The gitfast plugin lets you use the faster upstream zsh completion
macros.  Before, it would also force you into using the upstream prompt
expressions.  I want to be able to choose which of the two upstream bits
to use — I want upstream completion but oh-my-zsh prompts, for instance.
2013-01-29 09:25:23 -05:00

10 lines
267 B
Bash

dir=$(dirname $0)
source $dir/../git/git.plugin.zsh
if [ -z "$GITFAST_USE_OHMYZSH_PROMPT" ]; then
source $dir/git-prompt.sh
function git_prompt_info() {
__git_ps1 "${ZSH_THEME_GIT_PROMPT_PREFIX//\%/%%}%s${ZSH_THEME_GIT_PROMPT_SUFFIX//\%/%%}"
}
fi