| View previous topic :: View next topic |
| Author |
Message |
Lockup Guru


Joined: 25 Jul 2002 Posts: 430
|
Posted: Wed Dec 18, 2002 12:21 am Post subject: bash completion |
|
|
anyone know a way that i could change bash completion's behaviour?
esp file associations (heres a few examples:
javac [tab] would only choose from .class files, hence making it easier as the .java is often the same name and in the same dir, which makes tab completion silly
java [tab] would only choose from .java files...
stuff like that, itd be quite nice to have for quicker and more effective use of bash;P |
|
| Back to top |
|
 |
mooman Apprentice


Joined: 06 Nov 2002 Posts: 175 Location: Vancouver, WA
|
Posted: Wed Dec 18, 2002 12:49 am Post subject: |
|
|
To my knowledge, this isn't native in Bash. zsh and tcsh both support that kind of customization, but you have to rely on other tools to do so in bash.
Check out:
http://www.caliban.org/bash/#completion
Hope this helps. _________________ Linux user off and on since circa 1995 |
|
| Back to top |
|
 |
MathFreak Apprentice


Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Wed Dec 18, 2002 5:49 pm Post subject: |
|
|
| mooman wrote: | To my knowledge, this isn't native in Bash. zsh and tcsh both support that kind of customization, but you have to rely on other tools to do so in bash.
Check out:
http://www.caliban.org/bash/#completion
Hope this helps. |
Actually, it is native in bash. Just emerge bash-completion. It's just a script of different file associations. It's worth it alone for me to make "cd [tab]" only bring up directories. |
|
| Back to top |
|
 |
mooman Apprentice


Joined: 06 Nov 2002 Posts: 175 Location: Vancouver, WA
|
Posted: Wed Dec 18, 2002 7:11 pm Post subject: |
|
|
| MathFreak wrote: | | Actually, it is native in bash. Just emerge bash-completion. |
Okay, to me that means it's not native!
I didn't know there was something in the treee but I did know that there wasn't already some config file that you could just add a couple lines too... _________________ Linux user off and on since circa 1995 |
|
| Back to top |
|
 |
|