Call git directly and bypass aliases
Useful so it doesn't get slowed down by wrappers like `hub`
This commit is contained in:
@@ -35,7 +35,7 @@ zstyle ':vcs_info:git*' actionformats ' %b|%a'
|
|||||||
# Fastest possible way to check if repo is dirty
|
# Fastest possible way to check if repo is dirty
|
||||||
git_dirty() {
|
git_dirty() {
|
||||||
[ -d .git ] || return
|
[ -d .git ] || return
|
||||||
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*'
|
command git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Displays the exec time of the last command if set threshold was exceeded
|
# Displays the exec time of the last command if set threshold was exceeded
|
||||||
|
|||||||
Reference in New Issue
Block a user