diff --git a/completions/just.bash b/completions/just.bash index eb84e3e..9c7945b 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 f1eeea6..696f57c 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)