Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash completion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Wed Dec 18, 2002 12:21 am    Post subject: bash completion Reply with quote

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
View user's profile Send private message
mooman
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 175
Location: Vancouver, WA

PostPosted: Wed Dec 18, 2002 12:49 am    Post subject: Reply with quote

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
View user's profile Send private message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Wed Dec 18, 2002 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
mooman
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 175
Location: Vancouver, WA

PostPosted: Wed Dec 18, 2002 7:11 pm    Post subject: Reply with quote

MathFreak wrote:
Actually, it is native in bash. Just emerge bash-completion.


Okay, to me that means it's not native! :P

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum