use "command" when executing prompt commands to speed up execution
This commit is contained in:
parent
f366f545b3
commit
ac5e13e215
@ -38,7 +38,7 @@ function prompt_ps1_git_branch()
|
|||||||
if [[ "$which_git" == "" ]]; then
|
if [[ "$which_git" == "" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
branch_out=$(git branch -vv 2>/dev/null | grep '^\*' | sed -e 's/^..//')
|
branch_out=$(command git branch -vv 2>/dev/null | grep '^\*' | sed -e 's/^..//')
|
||||||
if [[ "$branch_out" == "" ]]; then
|
if [[ "$branch_out" == "" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -60,7 +60,7 @@ function prompt_ps1_svn_branch()
|
|||||||
if [[ "$which_svn" == "" ]]; then
|
if [[ "$which_svn" == "" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
url_out=$(svn info 2>/dev/null | grep '^URL:' | grep -E '\<(trunk|tags|branches)\>')
|
url_out=$(command svn info 2>/dev/null | grep '^URL:' | grep -E '\<(trunk|tags|branches)\>')
|
||||||
if [[ "$url_out" == "" ]]; then
|
if [[ "$url_out" == "" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user