On 09/06/2010 08:11 PM, Rune Morling wrote:
> This weekend I spent a little time dusting off our vcs tools and
> adding bash completion scripts to their respective recipes.

Works nicely now. Good job!

> I have been thinking about whether and how to activate the completion
> scripts by default without any user interaction (aka 'it just works'),
> but decided against it as they should really only be loaded for
> interactive bash sessions. If anyone can think of an elegant solution
> for this, please chip in.

Why not enable bash completion 'globally'?

Ubuntu has this in bashrc (namely, /etc/skel/.bashrc, so it's copied to 
every user's $HOME/.bashrc):

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
     . /etc/bash_completion
fi

It can also be put in /etc/bashrc, but I think /etc/skel/.bashrc is better.

Jesse
_______________________________________________
Foresight-devel mailing list
Foresight-devel@lists.rpath.org
http://lists.rpath.org/mailman/listinfo/foresight-devel

Reply via email to