From b8044e789b6e5e8a477d51918948b84e50dbf744 Mon Sep 17 00:00:00 2001 From: laniakea64 Date: Tue, 28 May 2024 17:31:11 -0400 Subject: [PATCH] Fix bash completion for aliases (#2104) --- completions/just.bash | 2 +- src/completions.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/completions/just.bash b/completions/just.bash index f52183d..929746b 100644 --- a/completions/just.bash +++ b/completions/just.bash @@ -29,7 +29,7 @@ _just() { done case "${cmd}" in - "$1") + just) opts="-n -f -q -u -v -d -c -e -l -s -E -g -h -V --check --chooser --color --command-color --yes --dry-run --dump-format --highlight --list-heading --list-prefix --no-aliases --no-deps --no-dotenv --no-highlight --justfile --quiet --set --shell --shell-arg --shell-command --clear-shell-args --unsorted --unstable --verbose --working-directory --changelog --choose --command --completions --dump --edit --evaluate --fmt --init --list --groups --man --show --summary --variables --dotenv-filename --dotenv-path --global-justfile --help --version [ARGUMENTS]..." if [[ ${cur} == -* ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) diff --git a/src/completions.rs b/src/completions.rs index 74d0eb5..bc8564b 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -202,7 +202,6 @@ pub(crate) const BASH_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[ fi fi"#, ), - (r" just)", r#" "$1")"#), ( r"local i cur prev opts cmd", r"local i cur prev words cword opts cmd",