summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Stipic <bojanstipic@gmail.com>2023-06-18 02:05:49 +0200
committerGitHub <noreply@github.com>2023-06-18 00:05:49 +0000
commitf44abdf024a46c217a61e54bbbab60074560d304 (patch)
tree1e4497381da380a69b83e885b791f670ed5f9471
parentc2cfdd7a9c83f9da53df7f89a0d94b7b0d567f2c (diff)
Avoid grep aliases in bash completions (#1622)
-rw-r--r--completions/just.bash2
-rw-r--r--src/completions.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/completions/just.bash b/completions/just.bash
index eb84e3e8..9c7945b2 100644
--- a/completions/just.bash
+++ b/completions/just.bash
@@ -27,7 +27,7 @@ _just() {
elif [[ ${COMP_CWORD} -eq 1 ]]; then
local recipes=$(just --summary 2> /dev/null)
- if echo "${cur}" | grep -qF '/'; then
+ if echo "${cur}" | \grep -qF '/'; then
local path_prefix=$(echo "${cur}" | sed 's/[/][^/]*$/\//')
local recipes=$(just --summary 2> /dev/null -- "${path_prefix}")
local recipes=$(printf "${path_prefix}%s\t" $recipes)
diff --git a/src/completions.rs b/src/completions.rs
index f1eeea6a..696f57c4 100644
--- a/src/completions.rs
+++ b/src/completions.rs
@@ -168,7 +168,7 @@ pub(crate) const BASH_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[
elif [[ ${COMP_CWORD} -eq 1 ]]; then
local recipes=$(just --summary 2> /dev/null)
- if echo "${cur}" | grep -qF '/'; then
+ if echo "${cur}" | \grep -qF '/'; then
local path_prefix=$(echo "${cur}" | sed 's/[/][^/]*$/\//')
local recipes=$(just --summary 2> /dev/null -- "${path_prefix}")
local recipes=$(printf "${path_prefix}%s\t" $recipes)