smarter bash completion
Peter Garrett
peter.garrett at optusnet.com.au
Wed Aug 24 14:28:13 UTC 2005
On Wed, 24 Aug 2005 09:24:55 -0400
Alvin Thompson <alvin-ubuntu at thompsonlogic.com> wrote:
> hello,
>
> on suse 9.3, the bash completion is pretty smart. it knows to only
> list/complete directories after a 'cd' command and after a 'which'
> command, it completes commands from your path as normal. i'm sure it
> does other tricks i haven't noticed. is there any way to do these things
> on ubuntu?
In /etc/bash.bashrc :
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
> if so why not make it the default?
I have no idea ;-) I picked this up from some guru on IRC... I agree, it seems like a good idea...
>
> thanks,
> alvin
Peter
--
Linux User #343161
More information about the ubuntu-users
mailing list