Package Details: bash-complete-alias 1.18.0-1

Git Clone URL: https://aur.archlinux.org/bash-complete-alias.git (read-only, click to copy)
Package Base: bash-complete-alias
Description: automagical bash shell alias completion
Upstream URL: https://repo.cykerway.com/complete-alias
Licenses: GPL3
Submitter: tinywrkb
Maintainer: tinywrkb
Last Packager: tinywrkb
Votes: 9
Popularity: 0.018480
First Submitted: 2020-04-15 20:09 (UTC)
Last Updated: 2021-08-28 12:15 (UTC)

Latest Comments

iontunnel commented on 2021-08-10 00:00 (UTC)

This thing is great. Bash is just as speedy and peppy with as without.

abouvier commented on 2021-08-09 13:59 (UTC) (edited on 2021-08-09 14:00 (UTC) by abouvier)

I do like this for every alias now:

$ type q
q is aliased to `pacman -Qi'
$ cat ~/.local/share/bash-completion/completions/q.bash
if [[ -r /usr/share/bash-complete-alias/complete_alias ]]; then
    source /usr/share/bash-complete-alias/complete_alias
    complete -F _complete_alias q
fi

tinywrkb commented on 2020-06-22 16:28 (UTC)

Not gonna happen, I'm not going to force this system-wise, especially when the usual use for aliases is in the user's own bashrc scripts.

/etc is for per-system config/policy, not for distro/vendor distributed files, these should be put in /usr, so it's a pretty bad idea to install in /etc/bash_completion.d.

Just create a symlink in /etc/bash_completion.d if you want to force this function system-wise.

abouvier commented on 2020-06-21 20:08 (UTC) (edited on 2020-06-21 20:26 (UTC) by abouvier)

In fact I think this script should be installed in /etc/bash_completion.d (or even /usr/share/bash-completion/completions?).

abouvier commented on 2020-06-20 01:26 (UTC)

One can also enable it by creating this link: ln -s /usr/share/bash-complete-alias/complete_alias ~/.bash_completion

Or by defining this environment variable: export BASH_COMPLETION_USER_FILE=/usr/share/bash-complete-alias/complete_alias