mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
fix git status slow
This commit is contained in:
parent
a329c15750
commit
eb4c49d4a6
1 changed files with 1 additions and 6 deletions
|
|
@ -301,7 +301,6 @@ dash_passion_precmd() {
|
|||
function __git_fetch_status(){
|
||||
__git_prompt_git rev-parse --is-inside-work-tree &>/dev/null || return 0
|
||||
__git_prompt_git fetch -q --all 2>/dev/null
|
||||
__git_prompt_git status 12>/dev/null
|
||||
}
|
||||
|
||||
function git_fetch_status() {
|
||||
|
|
@ -313,11 +312,7 @@ function git_fetch_status() {
|
|||
|
||||
function chpwd() {
|
||||
__git_prompt_git rev-parse --is-inside-work-tree &>/dev/null || return 0
|
||||
__git_prompt_git status 12>/dev/null
|
||||
__git_prompt_git status 12>/dev/null
|
||||
__git_prompt_git status 12>/dev/null
|
||||
__git_prompt_git status 12>/dev/null
|
||||
# __git_prompt_git gc -q >/dev/null &!
|
||||
__git_prompt_git update-index --refresh --assume-unchanged
|
||||
}
|
||||
|
||||
# real time clock for zsh.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue