Monday, August 19, 2019

bash completion for aliases



For alias like  gv = gvim, bash completion don't work.

Following link helps to setup bash completion to work for alias too.

https://github.com/cykerway/complete-alias


It is two step process:

From the above link get bash_completion.sh and do

1. cat bash_completion.sh >> ~/.bash_completion



Now, add the below linke in ~/.bash_completion: 

2. complete -F _complete_alias gv 

No comments:

Post a Comment