Skip to content

progcomp_alias not working with some commands (tree) #697

Description

@Jai-JAP
$ ble summary
GNU bash, version 5.3.9(1)-release (x86_64-pc-linux-gnu) [Arch Linux]
ble.sh, version 0.4.0-devel4+b99cadb4 (noarch) [git 2.53.0, GNU Make 4.4.1, GNU Awk 5.4.0, API 4.1, PMA Avon 8-g1, (GNU MPFR 4.2.2, GNU MP 6.3.0)]
bash-completion, version 2.17.0 (hash:480ffcc6a751e55621ec526eb5dea7a0d86d9e72, 17877 bytes) (noarch)
fzf key-bindings, (hash:a65d2ad5aab9690911b27b3b1431cf09f75913e3, 1060674 bytes) (noarch) (integration: on)
fzf completion, (hash:a65d2ad5aab9690911b27b3b1431cf09f75913e3, 1060674 bytes) (noarch) (integration: on)
locale: LANG=en_US.UTF-8
terminal: TERM=xterm-256color wcwidth=16.0-west/16.0-2+ri, wt:0 (0;10;1)
options: +noclobber +autocd +cdspell +dirspell +extglob +histappend -hostcomplete +inherit_errexit +login_shell +no_empty_cmd_completion +progcomp_alias```

I have the tree command aliased as

alias tree='eza -ghoMT --smart-group --git --no-time --no-permissions --group-directories-first --hyperlink --no-quotes -I .git --icons'

Having the progcomp_alias option set, and clearing tree completions using complete -r tree the tab completions still resolve to the original tree commands. Not sure whether this is specific to this command, havent observed with anything else I use.

=> complete -p tree
-bash: complete: tree: no completion specification

=> tree -bash:^C
 
=> complete -p tree
complete -F _comp_cmd_tree tree

The tree -bash: arg is autocompleted when i use tree -<TAB> instead of showing me options from eza

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions