I read a few articles, but having little to no knowledge of bash script I'm unable to do what I need. like I tried this SO post
I've a function in .bash_alias as follows, which simply cd into server folder.
html() {
cd /var/www/html/$1
}
So in command html myapp it executes cd /var/www/html/myapp. This is all fine. I want to take to to Next level.
I want to do html my<TAB> so that it auto completes into html myapp
Not to hard-code any folder, I want to have the usual default auto completion behavior. If there are multiple folder start with my in the name, list folders maybe as well. Please guide.