From ac5e13e215cbedfc74b2fc560e0bf28aa7074999 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 4 Jun 2013 11:20:27 -0400 Subject: [PATCH] use "command" when executing prompt commands to speed up execution --- bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_aliases b/bash_aliases index bd960ba..266bd24 100755 --- a/bash_aliases +++ b/bash_aliases @@ -38,7 +38,7 @@ function prompt_ps1_git_branch() if [[ "$which_git" == "" ]]; then return 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 return fi @@ -60,7 +60,7 @@ function prompt_ps1_svn_branch() if [[ "$which_svn" == "" ]]; then return 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 return fi