aliases icon indicating copy to clipboard operation
aliases copied to clipboard

Autocompletion of aliases

Open sebglazebrook opened this issue 8 years ago • 5 comments

Proposal: smart/dynamic auto-completion of aliases

Problem

If I have an alias g that completes to 'git' I don't see the git bash completion

Solution

Dynamically work out the command being entered and direct the bash completion to the right command

sebglazebrook avatar Apr 25 '17 07:04 sebglazebrook

it would be great, a little bit uncomfortable without this.

artdevjs avatar Apr 25 '17 20:04 artdevjs

Any idea when this might land? Would be really useful!

wesselvdv avatar Aug 16 '18 13:08 wesselvdv

This is a bit tricky, can be done but I haven't thought through it all yet.

I know how it would work for bash as that's the shell I use most but zsh or anything else I'm not sure.

Do you use bash or something else?

sebglazebrook avatar Aug 17 '18 11:08 sebglazebrook

I am using bash, and I've been using aliases for creating easy shortcuts in our development stack.

wesselvdv avatar Aug 17 '18 12:08 wesselvdv

There is a great project for this already. See cykerway/complete-alias.git

shanness avatar Aug 28 '23 10:08 shanness