From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI,RDNS_NONE autolearn=no autolearn_force=no version=4.0.0 Received: from smail-cal.shawcable.com (unknown [24.64.63.13]) by chiba.3jane.net (Postfix) with ESMTP id 6221B2015DDD for ; Wed, 13 Mar 2002 12:25:33 -0600 (CST) Received: from disinformation.ca (h24-68-88-191.vc.shawcable.net [24.68.88.191]) by smail-cal.shawcable.com (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GSX00DMSCB198@smail-cal.shawcable.com> for gentoo-dev@gentoo.org; Wed, 13 Mar 2002 11:21:02 -0700 (MST) Date: Wed, 13 Mar 2002 10:30:43 -0800 From: Zach Forrest Subject: Re: [gentoo-dev] latest and greatest gentoo.completion To: gentoo-dev@gentoo.org Message-id: <3C8F9AD3.8060705@disinformation.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 References: <3C8EA5CB.5070108@disinformation.ca> <20020313070557.76AFA2004E02@chiba.3jane.net> Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 19ca015f-29be-4b65-b413-839df6fac883 X-Archives-Hash: fdefa718972579485dc710ad624e1fcb It is what you think it is. You simply have to place the file in /etc (or anywhere else really, but /etc is the best place) and add the following to your .bashrc script. You will most likely want to add it to the root user's .bashrc script as well. The test for the $PS1 environment variable makes sure that we're running interactively and the second test makes sure the file exists. if [ "$PS1" ] && [ -e /etc/gentoo.completion ]; then # Source completion code . /etc/gentoo.completion fi You could also add the following to /etc/profile instead of the .bashrc scripts to make it available to all users (it's really a matter of preference). The test for $BASH_VERSION makes sure that the completion code is only sourced for users using the bash shell (i.e. if they are using csh the code won't work and errors will be generated). if [ "$BASH_VERSION" ] && [ "$PS1" ] && [ -e /etc/gentoo.completion ] then # Source completion code . /etc/gentoo.completion fi Hope this helps. Zach Thilo Bangert wrote: > On Wednesday, 13. March 2002 02:05, you wrote: > >>I've made some significant changes incorporating the latest available >>options and making the completion more intelligent. Enjoy! >> >>Zach > > > is this what i think it is and for bash? or is it for some weird shell > ;-) > > how does a newbie like me get that to work? >