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: 12
Popularity: 0.033928
First Submitted: 2020-04-15 20:09 (UTC)
Last Updated: 2021-08-28 12:15 (UTC)

Latest Comments

m040601 commented on 2023-04-08 01:58 (UTC) (edited on 2023-04-08 02:32 (UTC) by m040601)

Can anyone who has actually consistenly and daily used this for a couple of years provide any feedback, input or experience after having used it ? Confirmed it is solid and works as expected without any glitch or edge case situation ?

Thanks to tinywrkb for providing this PKGBUILD. It even has very super clear "installation notes" displayed after installing the PKGBUILD. And very reasonable and wise judgements of what should be installed/activated by default.

The tool itself looks awesome. Seems to work without a flaw for me. Even for not bash experts the logic of what it does and the files it installs seem compreensible. Fits in my head. Everything seems to work perfectly. There are even some comments on, https://superuser.com/questions/436314/how-can-i-get-bash-to-perform-tab-completion-for-my-aliases

    This seems to still be maintained in 2022, and I can confirm works very well. 
Oct 18, 2022 at 17:50

However, I would wish to be 101% sure, not 99% sure, that this tool is well designed and wont eat my lunch or pull the carpet under my feet.

Can anyone who has actually consistenly and daily used this for a couple of years provide any feedback, input or experience after having used it ? Confirmed it is solid and works as expected without any glitch or edge case situation ?

I would like to hear from the "Archlinux voice" not the "Internet voice". I dont want to play games with bash, and I am not a programmer and lack the bash expertise to properly review the code. I'm not a newbie. I am a long time Arch user. I live, eat and breath on the terminal.

So I am wondering things like these. Sorry for the scepticism. I am actually using it without any problems. Too good to be true ? Why isnt it more well known ? Why havent I found this earlier ? Why havent I saw any mention of it in the Arch wiki or forums ? Why havent I saw something similar in my bash bible, https://mywiki.wooledge.org/ ? Why does the github repo has so few stars ? Why isnt there an official arch package for this ? Any "dangerous" edge case ? Any chance any future official bash update might brake this ? Any possible clashes or drawbacks using this with a highly customized bashrc setup with many other things ? Is there any other similar clean ready made alternative to this "completion for bash alias" question ?

A cursory look at the git repo shows some updates to the README in 2022. The last tagged "release" in 2021. That per se doest mean it's not unmaitained. It's bash afterall. It doesnt change everyday. If it's properly designed it should last for years, without touching the repo.

Thanks in advance.

tinywrkb commented on 2023-01-07 19:46 (UTC)

This package adds _complete_alias function. It does not add bash completion functions for package's executables.

perigoso commented on 2023-01-06 12:25 (UTC)

I know the original source named it complete-alias, but this really should be named bash-completion-alias to align with other similar packages

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