LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-01-2005, 10:07 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Lightbulb Can we enable bash completion in Sarge?How?Please help...


Hello,
I saw that all rpm based distros have a package called bash-completion rpm which makes life easier by completion...I hope in debian also we can have bash completion....
Code:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi
this quote is from ubuntu .bashrc file
how can we be able to achieve it.please help.....
 
Old 12-01-2005, 10:10 AM   #2
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
This might help.

http://www.debian-administration.org/articles/130



Peace V
 
Old 12-01-2005, 07:34 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Unhappy

SO will i need to download bash completion tar file and install it in debian?..see i found a file /etc/bash_completion in debian is huge donno where it should be edited...also i have bash-3.0.17 from unstable repo against default sarge's 2.5 i run a mixed system with lot f packages from unstable repo...like libc6 latest version from unstable,alsa,....

Last edited by deepclutch; 12-01-2005 at 07:50 PM.
 
Old 12-01-2005, 09:27 PM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Browsing the changelog for the "bash" package (http://packages.debian.org/changelog...0-17/changelog ) it seems to me that bash_completion was added to Debian in Sat, 12 Jan 2002 with the package version 2.05a-4:
Quote:
Add a script for programmable bash completion (version 1.53) from http://www.caliban.org/bash/index.shtml#completion. Add commented code into /etc/bash.bashrc"
and this feature is certainly included in Sarge's version of bash (2.05b-26).

All you need to do to enable this bash_completion feature is to follow the advice that cuiq linked to. Type
Code:
echo '. /etc/bash_completion' >> ~/.bashrc
in a terminal window. Then log out and login again, and you should have bash_completion.
 
Old 12-02-2005, 07:58 AM   #5
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Cool

Hei,
Dead Parrot U saved my day!Now its working!Thnak You Very Much!
 
Old 12-02-2005, 08:35 AM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
You should have read the article cuiq posted:
Quote:
To cause your shell to use it run the following command, then login again:

echo '. /etc/bash_completion' >> ~/.bashrc
Lots more useful tips there. I think I'll look into this.
 
Old 12-02-2005, 07:02 PM   #7
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
my fault i just briefly have a look @t that page;left that one....Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto enable logging from BIND 9 on Debian Sarge ? cccc Debian 2 07-07-2005 06:43 PM
What is the + or - on the completion of a bg job? davee Solaris / OpenSolaris 2 05-05-2005 07:10 AM
auto-completion in bash with wildcards juanbobo Linux - Software 2 04-07-2005 12:56 AM
Cant enable DMA for NFORCE2 in Sarge cRuNcHiE Debian 5 12-18-2004 05:24 PM
Sarge - only ASH in shell no BASH jriis Debian 1 12-25-2003 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration