-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this still work? #42
Comments
Ok, I manually ran the following commands:
And things started to work. I'm not entirely sure why, though. |
One thing I'm noticing is that completion does not work with the alias until a completion has been run using the full command name at least once. 🤷🏽♂️ |
I don't have anything else in Also I have this note in my # Debian doesn't have bash-completion by default so you need to apt install bash-completion and add the below
# also don't forget about https://github.com/cykerway/complete-alias
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi |
for my use-case i do not need complete-alias, however i had this issue also & resolve it by writing
the completion function may be something other than |
i made the same mistake. you need to COPY the complete_alias file from the repo an APPEND your completion command to it. the example in the read me walks you through it. |
The instructions are confusing or I'm too dumb to figure them out or this doesn't work on Debian bullseye anymore running bash 5.1.4. I installed this with
apt get bash-completion
I have an alias for docker called "dk".
I created file in home directory called
complate_alias
with following:complete -F _complete_alias dk
In a newly created file called
.bash_completion
in my home dir, I have. /home/admin/complete_alias
. I also put the same in~/.bashrc
.I logged out and back into the shell. Resource all the files above. Still get:
dk <tab>-bash: completion: function
_complete_alias' not found`The text was updated successfully, but these errors were encountered: