From ff1a59ddb7d14bb70fa0cde0003f745a21a90ad7 Mon Sep 17 00:00:00 2001 From: Giuseppe Rota Date: Wed, 2 May 2012 21:45:03 +0200 Subject: [PATCH] forgot another one `command grep` --- lib/git/repo_index.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index 50e789b..d817fde 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -290,7 +290,7 @@ function _git_index_tab_completion() { # If matching project path was found and curr string contains a /, then complete project sub-directories if [[ -n "$base_path" && $curw == */* ]]; then local search_path=$(echo "$curw" | sed "s:^${project/\\/\\\\\\}::") - COMPREPLY=($(compgen -d "$base_path$search_path" | grep -v "/.git" | sed -e "s:$base_path:$project:" -e "s:$:/:" )) + COMPREPLY=($(compgen -d "$base_path$search_path" | command grep -v "/.git" | sed -e "s:$base_path:$project:" -e "s:$:/:" )) # If curr string starts with /, tab complete top-level directories in root project dir elif ([ $shell = "bash" ] && [ "${curw:0:1}" = "/" ]) || \