Skip to content

Commit

Permalink
Fix bash completion for aliases (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 authored May 28, 2024
1 parent a045cf0 commit b8044e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion completions/just.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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}") )
Expand Down
1 change: 0 additions & 1 deletion src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b8044e7

Please sign in to comment.